aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-18 22:02:39 +0200
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-18 22:02:39 +0200
commitad28c7f9dad791567afa0624acfb3ba430851965 (patch)
tree02095e5f567d6be1de31ffd858d21233b51675dd /Lib/glob.py
parentIssue #16714: use 'raise' exceptions, don't 'throw'. (diff)
downloadcpython-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.py2
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] != '.']