Commits

Brandon Rhodes committed f96ad6e

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

Comments (0)

Files changed (1)

     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