1.1 --- a/micropython/common.py Fri May 18 01:21:20 2012 +0200
1.2 +++ b/micropython/common.py Sat May 19 01:33:10 2012 +0200
1.3 @@ -20,6 +20,7 @@
1.4 """
1.5
1.6 import operator
1.7 +import sys
1.8
1.9 try:
1.10 set
1.11 @@ -358,11 +359,11 @@
1.12 attrnames = attrnames or ()
1.13 objtypes = objtable.all_possible_objects_plus_status(attrnames)
1.14 if not objtypes:
1.15 - print "Warning: usage in %r for %r finds no object supporting all attributes %r" % (
1.16 + print >>sys.stderr, "Warning: usage in %r for %r finds no object supporting all attributes %r" % (
1.17 unit_name, name, attrnames)
1.18 objtypes = objtable.any_possible_objects_plus_status(attrnames)
1.19 if not objtypes:
1.20 - print "Warning: usage in %r for %r finds no object supporting any attributes %r" % (
1.21 + print >>sys.stderr, "Warning: usage in %r for %r finds no object supporting any attributes %r" % (
1.22 unit_name, name, attrnames)
1.23
1.24 all_objtypes.update(objtypes)