summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-04-07 09:04:01 (GMT)
committerGuido van Rossum <guido@python.org>1995-04-07 09:04:01 (GMT)
commitfa486a2d5329cf199dcf88cc16c4a98e7942a962 (patch)
treedbaa452cda34f5c30c087f5a680bcab4fa4863b6
parent5232590bf144efc886a14584bd41642d3b87095f (diff)
downloadcpython-fa486a2d5329cf199dcf88cc16c4a98e7942a962.zip
cpython-fa486a2d5329cf199dcf88cc16c4a98e7942a962.tar.gz
cpython-fa486a2d5329cf199dcf88cc16c4a98e7942a962.tar.bz2
call test() when run as script
-rwxr-xr-xLib/newimp.py3
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()