diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-17 19:51:15 +0200 |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-17 19:51:15 +0200 |
commit | 786fbd8db707c7cb302a1adf2b57a0b3f8ba078c (patch) | |
tree | e57dc024621da6cee184acd32427a51acaefdc0d /Lib/idlelib/GrepDialog.py | |
parent | 69d03c4799ade6202e44f4a39331ae26524c932b (diff) | |
download | cpython-git-786fbd8db707c7cb302a1adf2b57a0b3f8ba078c.tar.gz |
Replace os.error with OSError in tkinter and IDLE
Diffstat (limited to 'Lib/idlelib/GrepDialog.py')
-rw-r--r-- | Lib/idlelib/GrepDialog.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/GrepDialog.py b/Lib/idlelib/GrepDialog.py index 27fcc33c32..1450f7a24e 100644 --- a/Lib/idlelib/GrepDialog.py +++ b/Lib/idlelib/GrepDialog.py @@ -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 = [] |