1. Brandon Rhodes
  2. squint


Brandon Rhodes  committed f96ad6e

Mades cycles() a method to not hide AttributeError; and fixed set iteration.

  • Participants
  • Parent commits 7df45d4
  • Branches default

Comments (0)

Files changed (1)

File squinter.py

View file
  • Ignore whitespace
     def verbose(self):
         return ReprStr(format_object(self, verbose=True))
-    @property
     def cycles(self, depth=4):
         return ReprStr(format_cycles(self._obj, depth=4))
             yield 'key{}'.format(i), k
             yield 'value{}'.format(i), v
     elif isinstance(obj, set):
-        for i, k in enumerate(set.iterkeys(obj)):
+        for i, k in enumerate(set.__iter__(obj)):
             yield 'member{}'.format(i), k