summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/pindent.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/scripts/pindent.py')
-rwxr-xr-xTools/scripts/pindent.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/scripts/pindent.py b/Tools/scripts/pindent.py
index 15b6399..0151773 100755
--- a/Tools/scripts/pindent.py
+++ b/Tools/scripts/pindent.py
@@ -427,7 +427,7 @@ def complete_file(filename, stepsize = STEPSIZE, tabsize = TABSIZE, expandtabs =
# end if
import os
try: os.rename(filename, filename + '~')
- except os.error: pass
+ except OSError: pass
# end try
f = open(filename, 'w')
f.write(result)
@@ -442,7 +442,7 @@ def delete_file(filename, stepsize = STEPSIZE, tabsize = TABSIZE, expandtabs = E
# end if
import os
try: os.rename(filename, filename + '~')
- except os.error: pass
+ except OSError: pass
# end try
f = open(filename, 'w')
f.write(result)
@@ -457,7 +457,7 @@ def reformat_file(filename, stepsize = STEPSIZE, tabsize = TABSIZE, expandtabs =
# end if
import os
try: os.rename(filename, filename + '~')
- except os.error: pass
+ except OSError: pass
# end try
f = open(filename, 'w')
f.write(result)