summaryrefslogtreecommitdiffstats
path: root/Demo/distutils/test2to3
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2008-12-01 04:44:45 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2008-12-01 04:44:45 (GMT)
commit6825e17e1e4bc0034b6aba665d5e641e3febecfa (patch)
tree39eb264e9c116477ec0fc751e882dbab08e068e7 /Demo/distutils/test2to3
parent6178db6d55eac65fc236cbf48a3944d1c308c2d1 (diff)
downloadcpython-6825e17e1e4bc0034b6aba665d5e641e3febecfa.zip
cpython-6825e17e1e4bc0034b6aba665d5e641e3febecfa.tar.gz
cpython-6825e17e1e4bc0034b6aba665d5e641e3febecfa.tar.bz2
Add script forgotten in r67464.
Diffstat (limited to 'Demo/distutils/test2to3')
-rw-r--r--Demo/distutils/test2to3/maintest.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/Demo/distutils/test2to3/maintest.py b/Demo/distutils/test2to3/maintest.py
new file mode 100644
index 0000000..72a26dd
--- /dev/null
+++ b/Demo/distutils/test2to3/maintest.py
@@ -0,0 +1,10 @@
+#!/usr/bin/env python
+
+# The above line should get replaced with the path to the Python
+# interpreter; the block below should get 2to3-converted.
+
+try:
+ from test2to3.hello import hello
+except ImportError, e:
+ print "Import failed", e
+hello()