A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2001-December/018835.html below:

[Python-Dev] pychecker on 2.2 current

[Python-Dev] pychecker on 2.2 current [Python-Dev] pychecker on 2.2 currentNeal 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



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4