Changeset 31:c62ed518e5c8


Ignore:
Timestamp:
Sep 1, 2013, 2:14:35 PM (7 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Message:

Fix repor and add type-check to eq.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/mutators.py

    r24 r31  
    1717
    1818    def __eq__(self, other):
     19        if not isinstance(other, Mutator):
     20            return NotImplemented
    1921        return (self._func is other._func) and (self._args == other._args)
    2022
    21     def __repor__(self):
     23    def __repr__(self):
    2224        return '<%s %r>' % (self.__class__.__name__, self._args)
    2325
Note: See TracChangeset for help on using the changeset viewer.