diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-18 22:02:39 +0200 |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-18 22:02:39 +0200 |
commit | ad28c7f9dad791567afa0624acfb3ba430851965 (patch) | |
tree | 02095e5f567d6be1de31ffd858d21233b51675dd /Lib/glob.py | |
parent | Issue #16714: use 'raise' exceptions, don't 'throw'. (diff) | |
download | cpython-ad28c7f9dad791567afa0624acfb3ba430851965.tar.gz cpython-ad28c7f9dad791567afa0624acfb3ba430851965.tar.bz2 cpython-ad28c7f9dad791567afa0624acfb3ba430851965.zip |
Issue #16706: get rid of os.error
Diffstat (limited to 'Lib/glob.py')
-rw-r--r-- | Lib/glob.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/glob.py b/Lib/glob.py index 3c9c30cc223..33ee43bab13 100644 --- a/Lib/glob.py +++ b/Lib/glob.py @@ -55,7 +55,7 @@ def glob1(dirname, pattern): dirname = os.curdir try: names = os.listdir(dirname) - except os.error: + except OSError: return [] if pattern[0] != '.': names = [x for x in names if x[0] != '.'] |