summaryrefslogtreecommitdiff
path: root/python/examples
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
commit366e44c81022a4ee4ce86b2478cc72f569a277f8 (patch)
tree9f9d3a08135684f7f8bf391bce76ec69635e1213 /python/examples
parent6b41db0155435d9c49fc1f32fac56ea742d849f2 (diff)
downloadqpid-python-366e44c81022a4ee4ce86b2478cc72f569a277f8.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')
-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()