diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-17 17:51:15 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-17 17:51:15 (GMT) |
commit | 786fbd8db707c7cb302a1adf2b57a0b3f8ba078c (patch) | |
tree | e57dc024621da6cee184acd32427a51acaefdc0d /Lib/tkinter | |
parent | 69d03c4799ade6202e44f4a39331ae26524c932b (diff) | |
download | cpython-786fbd8db707c7cb302a1adf2b57a0b3f8ba078c.zip cpython-786fbd8db707c7cb302a1adf2b57a0b3f8ba078c.tar.gz cpython-786fbd8db707c7cb302a1adf2b57a0b3f8ba078c.tar.bz2 |
Replace os.error with OSError in tkinter and IDLE
Diffstat (limited to 'Lib/tkinter')
-rw-r--r-- | Lib/tkinter/filedialog.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/tkinter/filedialog.py b/Lib/tkinter/filedialog.py index 3ffb252..a71afb2 100644 --- a/Lib/tkinter/filedialog.py +++ b/Lib/tkinter/filedialog.py @@ -166,7 +166,7 @@ class FileDialog: dir, pat = self.get_filter() try: names = os.listdir(dir) - except os.error: + except OSError: self.master.bell() return self.directory = dir @@ -209,7 +209,7 @@ class FileDialog: if not os.path.isabs(dir): try: pwd = os.getcwd() - except os.error: + except OSError: pwd = None if pwd: dir = os.path.join(pwd, dir) |