[Python-Dev] pychecker on 2.2 current

Neal Norwitz neal@metaslash.com
Mon, 03 Dec 2001 21:42:14 -0500


Only found one potential problem:

mimetypes.py:405: No global (sys) found

This is inside usage() which presumably should only be used internally.  
sys is imported if __name__ == '__main__'.
So the problem can only be triggered if usage() is called by external source.

Possible fixes are:
	sys could be locally imported in usage()
	sys could be imported at the module scope
	usage could be made _usage() to denote it's private

Neal