Commits

Lynn Rees  committed b520641

- fix that

  • Participants
  • Parent commits 77a4c8a
  • Tags 0.5.7

Comments (0)

Files changed (2)

File knife/__init__.py

 
 __all__ = ('knife', 'activeknife', 'lazyknife', '__')
 
-__version__ = (0, 5, 6)
+__version__ = (0, 5, 7)

File knife/_mixins.py

         else:
             test = self._worker
         ifilter = ff if invert else f
-        def members(iterable, beenthere=None):  # @IgnorePep8
+        def members(iterable):  # @IgnorePep8
             mro = gm(iterable)
             names = it(d(iterable))
-            if beenthere is None:
-                beenthere = se()
+            beenthere = se()
             adder = beenthere.add
             try:
                 while 1:
                             break
                     else:
                         obj = ga(iterable, name)
-                    if obj in beenthere:
+                    if (name, obj) in beenthere:
                         continue
                     else:
-                        adder(obj)
+                        adder((name, obj))
                     if ic(obj):
                         yield name, OD((k, v) for k, v in ifilter(
-                            test, members(obj, beenthere),
+                            test, members(obj),
                         ))
                     else:
                         yield name, obj