summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2012-07-02 08:05:06 +0200
committerGuido Günther <agx@sigxcpu.org>2012-07-02 08:53:04 +0200
commite6e0150e07be32b91624b460b67be39b8f6b0ab9 (patch)
treeebf593199d58f8a46d3bbeae3335258c6e264d54 /examples
parent92a744e5c8e9751f7336ddaac597ded2a7456d8f (diff)
downloadgit-buildpackage-e6e0150e07be32b91624b460b67be39b8f6b0ab9.tar.gz
git-buildpackage-e6e0150e07be32b91624b460b67be39b8f6b0ab9.tar.bz2
git-buildpackage-e6e0150e07be32b91624b460b67be39b8f6b0ab9.zip
Make exception syntax consistent
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/gbp-add-patch2
-rwxr-xr-xexamples/gbp-posttag-push2
-rwxr-xr-xexamples/zeitgeist-git.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/gbp-add-patch b/examples/gbp-add-patch
index bf07fd75..e88af6eb 100755
--- a/examples/gbp-add-patch
+++ b/examples/gbp-add-patch
@@ -106,7 +106,7 @@ def main(argv):
except CommandExecFailed:
retval = 1
- except GbpError, err:
+ except GbpError as err:
if len(err.__str__()):
print >>sys.stderr, err
retval = 1
diff --git a/examples/gbp-posttag-push b/examples/gbp-posttag-push
index 6f92f836..012670df 100755
--- a/examples/gbp-posttag-push
+++ b/examples/gbp-posttag-push
@@ -83,7 +83,7 @@ def main(argv):
try:
parser = GbpOptionParser(command=os.path.basename(argv[0]), prefix='',
usage='%prog [options] paths')
- except ConfigParser.ParsingError, err:
+ except ConfigParser.ParsingError as err:
gbp.log.errror(err)
return 1
diff --git a/examples/zeitgeist-git.py b/examples/zeitgeist-git.py
index f09fc49c..4edd9461 100755
--- a/examples/zeitgeist-git.py
+++ b/examples/zeitgeist-git.py
@@ -47,7 +47,7 @@ except ImportError:
else:
try:
CLIENT = ZeitgeistClient()
- except RuntimeError, e:
+ except RuntimeError as e:
print "Unable to connect to Zeitgeist, won't send events. Reason: '%s'" %e