summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/finddiv.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/scripts/finddiv.py')
-rwxr-xr-xTools/scripts/finddiv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/finddiv.py b/Tools/scripts/finddiv.py
index f24a702..a705f56 100755
--- a/Tools/scripts/finddiv.py
+++ b/Tools/scripts/finddiv.py
@@ -70,7 +70,7 @@ def process(filename, listnames):
def processdir(dir, listnames):
try:
names = os.listdir(dir)
- except os.error as msg:
+ except OSError as msg:
sys.stderr.write("Can't list directory: %s\n" % dir)
return 1
files = []