diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2013-05-13 15:44:30 -0400 |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2013-05-13 15:44:30 -0400 |
commit | 6382dbc609831113577761575fd872be8660c024 (patch) | |
tree | 54d0ae0247c76c0410e8aabd2721b8a8781b6c60 /Lib/idlelib/GrepDialog.py | |
parent | d420b493ad1e5892c12e21a64f1cc40598d8e8c8 (diff) | |
parent | cdafe5b0ed72484083167f0d983827733e37f9de (diff) | |
download | cpython-6382dbc609831113577761575fd872be8660c024.tar.gz |
Complete 2 to 3 conversion
Diffstat (limited to 'Lib/idlelib/GrepDialog.py')
-rw-r--r-- | Lib/idlelib/GrepDialog.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/GrepDialog.py b/Lib/idlelib/GrepDialog.py index 27fcc33c32..1d8d51b593 100644 --- a/Lib/idlelib/GrepDialog.py +++ b/Lib/idlelib/GrepDialog.py @@ -82,7 +82,7 @@ class GrepDialog(SearchDialogBase): for fn in list: try: f = open(fn, errors='replace') - except IOError as msg: + except OSError as msg: print(msg) continue lineno = 0 @@ -110,7 +110,7 @@ class GrepDialog(SearchDialogBase): def findfiles(self, dir, base, rec): try: names = os.listdir(dir or os.curdir) - except os.error as msg: + except OSError as msg: print(msg) return [] list = [] |