diff options
| author | Kevin Yap <me@kevinyap.ca> | 2015-01-22 17:54:49 -0800 | 
|---|---|---|
| committer | Kevin Yap <me@kevinyap.ca> | 2015-01-22 23:04:07 -0800 | 
| commit | fc5bbdf70f8a9b0bfd7e377cc7df732b119bdac7 (patch) | |
| tree | 6cef992c84a0a17dee7fbc4c4d33344b0c73baff /src/etc/tidy.py | |
| parent | d8d5e4d2178097fbe92b26e57d0e18dc1eedbe5e (diff) | |
| download | rust-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.py | 2 | 
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)) | 
