summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2011-07-22 20:55:43 +0000
committerAlan Conway <aconway@apache.org>2011-07-22 20:55:43 +0000
commitbf041292746228f41fba0e70d10a49921a92ac0a (patch)
tree9362befd75e6db0d22290cdd8cc863b67a669e74 /cpp/src
parentf60c4d262b9011adba30b0d648aaaaffed1efe31 (diff)
downloadqpid-python-bf041292746228f41fba0e70d10a49921a92ac0a.tar.gz
NO-JIRA: fix trunk break, "except Exception as e" syntax is invalid in python 2.4
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1149733 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rwxr-xr-xcpp/src/tests/federation_sys.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/tests/federation_sys.py b/cpp/src/tests/federation_sys.py
index 8c963d6aa9..4e28156a29 100755
--- a/cpp/src/tests/federation_sys.py
+++ b/cpp/src/tests/federation_sys.py
@@ -64,10 +64,10 @@ class QmfTestBase010(TestBase010):
for session in self.sessions:
try: # Session may have been closed by broker error
session.close()
- except Exception as (e): print "WARNING: %s: Unable to close session %s (%s): %s %s" % (self, session, hex(id(session)), type(e), e)
+ except Exception, e: print "WARNING: %s: Unable to close session %s (%s): %s %s" % (self, session, hex(id(session)), type(e), e)
try: # Connection may have been closed by broker error
self.connection.close()
- except Exception as (e): print "WARNING: %s: Unable to close connection %s (%s): %s %s" % (self, self.connection, hex(id(self.connection)), type(e), e)
+ except Exception, e: print "WARNING: %s: Unable to close connection %s (%s): %s %s" % (self, self.connection, hex(id(self.connection)), type(e), e)
def session(self, name, transactional_flag = False):
session = self.connection.session(name, transactional_flag)
self.sessions.append(session)