diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2015-05-20 10:33:40 +0300 |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-05-20 10:33:40 +0300 |
| commit | ba9ac5b5c42a9bba54942211a3b00a1c3ce7bb23 (patch) | |
| tree | 84491ee8c5be973ab45551b7319bb71416946827 /Tools/scripts | |
| parent | 492f0277933fd5714762a99ec99fd7f97d99866a (diff) | |
| download | cpython-git-ba9ac5b5c42a9bba54942211a3b00a1c3ce7bb23.tar.gz | |
Issue #16261: Converted some bare except statements to except statements
with specified exception type. Original patch by Ramchandra Apte.
Diffstat (limited to 'Tools/scripts')
| -rwxr-xr-x | Tools/scripts/eptags.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/eptags.py b/Tools/scripts/eptags.py index 671ff11e65..401ac7e29c 100755 --- a/Tools/scripts/eptags.py +++ b/Tools/scripts/eptags.py @@ -25,7 +25,7 @@ def treat_file(filename, outfp): """Append tags found in file named 'filename' to the open file 'outfp'""" try: fp = open(filename, 'r') - except: + except OSError: sys.stderr.write('Cannot open %s\n'%filename) return charno = 0 |
