Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/turtleart.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2012-03-11 14:08:58 (GMT)
committer Walter Bender <walter.bender@gmail.com>2012-03-11 14:08:58 (GMT)
commit385d81d6311cb82ad99e8704264c7815bb972fa2 (patch)
tree7e3a49a84b9f6337ccef67cb11287f1c0e8886e7 /turtleart.py
parent16be870f86d8f34101540229bdab64670c557aae (diff)
revert to some Python 2.5 syntax for old Sugar systems (with Alan Jhonn Aguiar Schwyn)
Diffstat (limited to 'turtleart.py')
-rwxr-xr-xturtleart.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/turtleart.py b/turtleart.py
index 52192d5..c2fbc1f 100755
--- a/turtleart.py
+++ b/turtleart.py
@@ -131,7 +131,7 @@ class TurtleMain():
try:
exec f in globals(), plugin
self._plugins.append(plugin.values()[0](self))
- except ImportError as e:
+ except ImportError, e:
print 'failed to import %s: %s' % (P, str(e))
def _run_plugins(self):
@@ -143,7 +143,7 @@ class TurtleMain():
'''Create a directory in a fashion similar to `mkdir -p`.'''
try:
os.makedirs(path)
- except OSError as exc:
+ except OSError, exc:
if exc.errno == errno.EEXIST:
pass
else: