diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-20 10:18:42 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-20 10:18:42 +0100 |
commit | 7543a4165be9333054ab14f8a0d99af52fc71530 (patch) | |
tree | f3de1be6305cb3b76648a0aff1bcdb809efe86c5 /bin | |
parent | 17ccc09ec27bde00e5ed7a9fe6055a991992b0ed (diff) |
fix indent to get this working again
Change-Id: If48dcf4d04d3888975687aa85557e2cee317f2dd
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 c48bbc8bd33d..ef44dbd2caaa 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)) |