summaryrefslogtreecommitdiff
path: root/python/examples/api
diff options
context:
space:
mode:
authorJonathan Robie <jonathan@apache.org>2010-08-09 17:31:40 +0000
committerJonathan Robie <jonathan@apache.org>2010-08-09 17:31:40 +0000
commit75b46102c8dde630daf0bdfa4f608a52a840ae41 (patch)
tree9f9d3a08135684f7f8bf391bce76ec69635e1213 /python/examples/api
parentcf19b99236777026e5f2a00bec6f4e4c10fb631c (diff)
downloadqpid-python-75b46102c8dde630daf0bdfa4f608a52a840ae41.tar.gz
Removed finally - Python before 2.5 did not allow finally together with specific exceptions.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@983743 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/examples/api')
-rwxr-xr-xpython/examples/api/hello4
-rwxr-xr-xpython/examples/api/hello_xml4
2 files changed, 4 insertions, 4 deletions
diff --git a/python/examples/api/hello b/python/examples/api/hello
index a220fe794e..ad314da19e 100755
--- a/python/examples/api/hello
+++ b/python/examples/api/hello
@@ -48,5 +48,5 @@ try:
except MessagingError,m:
print m
-finally:
- connection.close()
+
+connection.close()
diff --git a/python/examples/api/hello_xml b/python/examples/api/hello_xml
index 07c2b13120..ab567ec5dd 100755
--- a/python/examples/api/hello_xml
+++ b/python/examples/api/hello_xml
@@ -73,5 +73,5 @@ try:
except MessagingError,m:
print m
-finally:
- connection.close()
+
+connection.close()