Commits

Reinout van Rees committed 4e1bca6

Using ``except CommandError, e`` instead of ``except CommandError as e`` for
python2.4 compatibility.

  • Participants
  • Parent commits 3fcb65b

Comments (0)

Files changed (3)

 1.5 (unreleased)
 ----------------
 
-- Nothing changed yet.
+- Using ``except CommandError, e`` instead of ``except CommandError as e`` for
+  python2.4 compatibility.
 
 
 1.4 (2010-08-17)

File checkoutmanager/dirinfo.py

         os.chdir(self.directory)
         try:
             output = system("hg out %s" % self.url)
-        except CommandError as e:
+        except CommandError, e:
             if e.returncode == 1:
                 # hg returns 1 if there are no outgoing changes!
                 # Checkoutmanager is as quiet as possible, so we print

File checkoutmanager/runner.py

     for dirinfo in conf.directories(group=group):
         try:
             getattr(dirinfo, 'cmd_' + action)()
-        except utils.CommandError as e:
+        except utils.CommandError, e:
             # An error occured!  Notify and bail out directly.
             e.print_msg()
             sys.exit(1)