]> granicus.if.org Git - python/commitdiff
Add script forgotten in r67464.
authorMartin v. Löwis <martin@v.loewis.de>
Mon, 1 Dec 2008 04:44:45 +0000 (04:44 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Mon, 1 Dec 2008 04:44:45 +0000 (04:44 +0000)
Demo/distutils/test2to3/maintest.py [new file with mode: 0644]

diff --git a/Demo/distutils/test2to3/maintest.py b/Demo/distutils/test2to3/maintest.py
new file mode 100644 (file)
index 0000000..72a26dd
--- /dev/null
@@ -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()