commit | fa486a2d5329cf199dcf88cc16c4a98e7942a962 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Apr 07 09:04:01 1995 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Apr 07 09:04:01 1995 +0000 |
tree | dbaa452cda34f5c30c087f5a680bcab4fa4863b6 | |
parent | 5232590bf144efc886a14584bd41642d3b87095f [diff] [blame] |
call test() when run as script
diff --git a/Lib/newimp.py b/Lib/newimp.py index 24d082d..614ce94 100755 --- a/Lib/newimp.py +++ b/Lib/newimp.py
@@ -954,3 +954,6 @@ __builtin__.__import__ = wasImport else: del __builtin__.__import__ + +if __name__ == '__main__': + test()