diff options
author | David Tardon <dtardon@redhat.com> | 2014-06-26 21:26:11 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2014-06-27 10:39:29 +0200 |
commit | 516fb340b1842a5deec3de61e47bb5a7ec5c1980 (patch) | |
tree | fb2ba6511bffdb9321f2802723b73fa156882204 /bin | |
parent | 0751477a375e0b6bb82c5aa47c9e666d6dc2ba8c (diff) |
integrate libpagemaker
Change-Id: I077d7c9a41793abdf5f001386f44ac407f94a6d3
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/get-bugzilla-attachments-by-mimetype | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/get-bugzilla-attachments-by-mimetype b/bin/get-bugzilla-attachments-by-mimetype index ce967e2cd6dd..31ba07d6ff0a 100755 --- a/bin/get-bugzilla-attachments-by-mimetype +++ b/bin/get-bugzilla-attachments-by-mimetype @@ -29,20 +29,20 @@ import stat import sys import threading, Queue try: - from urllib.request import urlopen +from urllib.request import urlopen except: - from urllib import urlopen +from urllib import urlopen try: - import xmlrpc.client as xmlrpclib +import xmlrpc.client as xmlrpclib except: - import xmlrpclib +import xmlrpclib from xml.dom import minidom from xml.sax.saxutils import escape def urlopen_retry(url): - maxretries = 3 - for i in range(maxretries + 1): - try: +maxretries = 3 +for i in range(maxretries + 1): + try: return urlopen(url) except IOError as e: print("caught IOError: " + str(e)) |