about summary refs log tree commit diff
path: root/src/etc/tidy.py
diff options
context:
space:
mode:
authorKevin Yap <me@kevinyap.ca>2015-01-22 17:54:49 -0800
committerKevin Yap <me@kevinyap.ca>2015-01-22 23:04:07 -0800
commitfc5bbdf70f8a9b0bfd7e377cc7df732b119bdac7 (patch)
tree6cef992c84a0a17dee7fbc4c4d33344b0c73baff /src/etc/tidy.py
parentd8d5e4d2178097fbe92b26e57d0e18dc1eedbe5e (diff)
downloadrust-fc5bbdf70f8a9b0bfd7e377cc7df732b119bdac7.tar.gz
rust-fc5bbdf70f8a9b0bfd7e377cc7df732b119bdac7.zip
Make `make tidy` Python scripts more idiomatic
Also makes errorck.py and tidy.py compatible with Python 3.
Diffstat (limited to 'src/etc/tidy.py')
-rw-r--r--src/etc/tidy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/tidy.py b/src/etc/tidy.py
index 536ab7f30b9..c65b762e517 100644
--- a/src/etc/tidy.py
+++ b/src/etc/tidy.py
@@ -113,7 +113,7 @@ try:
     if current_name != "":
         do_license_check(current_name, current_contents)
 
-except UnicodeDecodeError, e:
+except UnicodeDecodeError as e:
     report_err("UTF-8 decoding error " + str(e))