diff options
| author | Gordon Sim <gsim@apache.org> | 2014-09-30 12:45:40 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2014-09-30 12:45:40 +0000 |
| commit | e6068ab807c8887861cfdc786b839500ed058fc7 (patch) | |
| tree | 6431b4b284f2805c3c911ff5775582404d1abc3c /qpid/python | |
| parent | 27399059638b57202482ec0116ea7d464ee899d4 (diff) | |
| download | qpid-python-e6068ab807c8887861cfdc786b839500ed058fc7.tar.gz | |
NO-JIRA: fix syntax for older python versions (and consistent with style used in other modules in this package)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1628423 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
| -rw-r--r-- | qpid/python/qpid/connection08.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/qpid/python/qpid/connection08.py b/qpid/python/qpid/connection08.py index 7694114623..1b794425c9 100644 --- a/qpid/python/qpid/connection08.py +++ b/qpid/python/qpid/connection08.py @@ -61,12 +61,13 @@ class SockIO: def close(self): try: - self.sock.shutdown(SHUT_RDWR) - except socket.error, e: - if (e.errno == errno.ENOTCONN): - pass - else: - raise + try: + self.sock.shutdown(SHUT_RDWR) + except socket.error, e: + if (e.errno == errno.ENOTCONN): + pass + else: + raise finally: self.sock.close() |
