~ubuntu-branches/ubuntu/maverick/python3.1/maverick

« back to all changes in this revision

Viewing changes to Demo/distutils/test2to3/maintest.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-03-23 00:01:27 UTC
  • Revision ID: james.westby@ubuntu.com-20090323000127-5fstfxju4ufrhthq
Tags: upstream-3.1~a1+20090322
ImportĀ upstreamĀ versionĀ 3.1~a1+20090322

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
 
 
3
# The above line should get replaced with the path to the Python
 
4
# interpreter; the block below should get 2to3-converted.
 
5
 
 
6
try:
 
7
    from test2to3.hello import hello
 
8
except ImportError, e:
 
9
    print "Import failed", e
 
10
hello()