diff options
author | Alan Conway <aconway@apache.org> | 2011-07-22 20:55:43 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2011-07-22 20:55:43 +0000 |
commit | 4ee26dff92f6e05ad249432e96d01320d39df677 (patch) | |
tree | 256d806b06033df2e70e6071f21034f0e248db95 | |
parent | b398b547ef8822f893215564a738e323eff44284 (diff) | |
download | qpid-python-4ee26dff92f6e05ad249432e96d01320d39df677.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@1149733 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-x | qpid/cpp/src/tests/federation_sys.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/src/tests/federation_sys.py b/qpid/cpp/src/tests/federation_sys.py index 8c963d6aa9..4e28156a29 100755 --- a/qpid/cpp/src/tests/federation_sys.py +++ b/qpid/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) |