diff options
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 3c9c30c..33ee43b 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] != '.'] |