From 385d81d6311cb82ad99e8704264c7815bb972fa2 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Sun, 11 Mar 2012 14:08:58 +0000 Subject: revert to some Python 2.5 syntax for old Sugar systems (with Alan Jhonn Aguiar Schwyn) --- (limited to 'turtleart.py') 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: -- cgit v0.9.1