mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #16261: Converted some bare except statements to except statements
with specified exception type. Original patch by Ramchandra Apte.
This commit is contained in:
parent
492f027793
commit
ba9ac5b5c4
7 changed files with 13 additions and 13 deletions
|
@ -572,7 +572,7 @@ def getTclTkVersion(configfile, versionline):
|
|||
"""
|
||||
try:
|
||||
f = open(configfile, "r")
|
||||
except:
|
||||
except OSError:
|
||||
fatal("Framework configuration file not found: %s" % configfile)
|
||||
|
||||
for l in f:
|
||||
|
@ -814,7 +814,7 @@ def downloadURL(url, fname):
|
|||
except:
|
||||
try:
|
||||
os.unlink(fname)
|
||||
except:
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
def verifyThirdPartyFile(url, checksum, fname):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue