Commits

Jonathan Eunice committed 0545c75

fixed error in OptionsChain.__repr__

  • Participants
  • Parent commits 9db43d9

Comments (0)

Files changed (2)

         """
         grandpa = self.maps[-1]
         n_layers  = len(self.maps)
-        while type(grandpa) is not Options:
+        while not isinstance(grandpa, Options):
+            n_layers += len(grandpa.maps) - 1
             grandpa = grandpa.maps[-1]
-            n_layers += len(grandpa.maps) - 1
             
         guts = attrs(self, first=list(grandpa.keys()), underscores=True)
         return "{0}({1} layers: {2})".format(self.__class__.__name__, n_layers, guts)
 
 setup(
     name='options',
-    version=verno("0.202"),
+    version=verno("0.204"),
     author='Jonathan Eunice',
     author_email='jonathan.eunice@gmail.com',
     description='Container for flexible class, instance, and function call options',