# HG changeset patch # User Paul Boddie # Date 1338745898 -7200 # Node ID ef7ac2835df8ab5616afcfa639da30798b558ccb # Parent 49d2ed18d02345cd2c766298f7e6ddc46289e5d2 Made the warnings slightly simpler by only showing attribute names. diff -r 49d2ed18d023 -r ef7ac2835df8 micropython/common.py --- a/micropython/common.py Sun Jun 03 19:49:39 2012 +0200 +++ b/micropython/common.py Sun Jun 03 19:51:38 2012 +0200 @@ -360,11 +360,11 @@ objtypes = objtable.all_possible_objects_plus_status(attrnames) if not objtypes: print >>sys.stderr, "Warning: usage in %r for %r finds no object supporting all attributes %r" % ( - unit_name, name, attrnames) + unit_name, name, attrnames.keys()) objtypes = objtable.any_possible_objects_plus_status(attrnames) if not objtypes: print >>sys.stderr, "Warning: usage in %r for %r finds no object supporting any attributes %r" % ( - unit_name, name, attrnames) + unit_name, name, attrnames.keys()) all_objtypes.update(objtypes)