diff options
author | Guido van Rossum <guido@python.org> | 1995-04-07 09:04:01 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-04-07 09:04:01 (GMT) |
commit | fa486a2d5329cf199dcf88cc16c4a98e7942a962 (patch) | |
tree | dbaa452cda34f5c30c087f5a680bcab4fa4863b6 | |
parent | 5232590bf144efc886a14584bd41642d3b87095f (diff) | |
download | cpython-fa486a2d5329cf199dcf88cc16c4a98e7942a962.zip cpython-fa486a2d5329cf199dcf88cc16c4a98e7942a962.tar.gz cpython-fa486a2d5329cf199dcf88cc16c4a98e7942a962.tar.bz2 |
call test() when run as script
-rwxr-xr-x | Lib/newimp.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 @@ def test(number=0): __builtin__.__import__ = wasImport else: del __builtin__.__import__ + +if __name__ == '__main__': + test() |