# HG changeset patch # User Paul Boddie # Date 1340927048 -7200 # Node ID bbc93a13ba1ea1822537b0194d4b36cf2fd1c18b # Parent fb3ccb8ebc1684e4b60ca3aef57c3ae1014680a8 Undoing some module attribute handling changes with a note about limitations. diff -r fb3ccb8ebc16 -r bbc93a13ba1e micropython/inspect.py --- a/micropython/inspect.py Fri Jun 29 01:40:50 2012 +0200 +++ b/micropython/inspect.py Fri Jun 29 01:44:08 2012 +0200 @@ -548,8 +548,10 @@ value = expr.get_value() # Get the attribute and record its usage. + # NOTE: Need to provide concrete values for things like base classes + # NOTE: while also handling module attribute modification. - if isinstance(value, Class): + if isinstance(value, (Class, Module)): # Check for class.__class__.