1.1 --- a/lib/__builtins__/operator.py Thu Sep 22 22:08:37 2016 +0200
1.2 +++ b/lib/__builtins__/operator.py Thu Sep 22 22:15:50 2016 +0200
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Operator-related functions.
1.6
1.7 -Copyright (C) 2015 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2015, 2016 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -19,12 +19,12 @@
1.13 this program. If not, see <http://www.gnu.org/licenses/>.
1.14 """
1.15
1.16 -def _binary_op(self, other, op):
1.17 +def _binary_op(this, other, op):
1.18
1.19 - "Test the type of 'other' and perform 'op'."
1.20 + "Test the types of 'this' and 'other', performing 'op' if identical."
1.21
1.22 - if self.__class__ is other.__class__:
1.23 - return op(self, other)
1.24 + if this.__class__ is other.__class__:
1.25 + return op(this, other)
1.26 else:
1.27 return NotImplemented
1.28