diff options
Diffstat (limited to 'Tools/scripts/reindent.py')
-rw-r--r-- | Tools/scripts/reindent.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/scripts/reindent.py b/Tools/scripts/reindent.py index 5ac98c7..70242cc 100644 --- a/Tools/scripts/reindent.py +++ b/Tools/scripts/reindent.py @@ -61,7 +61,7 @@ def main(): try: opts, args = getopt.getopt(sys.argv[1:], "drvh", ["dryrun", "recurse", "verbose", "help"]) - except getopt.error, msg: + except getopt.error as msg: usage(msg) return for o, a in opts: @@ -99,7 +99,7 @@ def check(file): print "checking", file, "...", try: f = open(file) - except IOError, msg: + except IOError as msg: errprint("%s: I/O Error: %s" % (file, str(msg))) return |