Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/turtleart.py
diff options
context:
space:
mode:
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: