Mercurial > p > roundup > code
diff setup.py @ 5248:198b6e810c67
Use Python-3-compatible 'as' syntax for except statements
Many raise statements near these are also fixed.
So are two ivorrect file encoding marks ('utf8'->'utf-8').
| author | Eric S. Raymond <esr@thyrsus.com> |
|---|---|
| date | Thu, 24 Aug 2017 22:21:37 -0400 |
| parents | 0b557e27a5e4 |
| children | dca36294a733 |
line wrap: on
line diff
--- a/setup.py Thu Aug 24 17:55:02 2017 -0400 +++ b/setup.py Thu Aug 24 22:21:37 2017 -0400 @@ -110,7 +110,7 @@ try: # attempt to interpret string as 'ascii' long_description = long_description.encode('ascii') - except UnicodeEncodeError, cause: + except UnicodeEncodeError as cause: print >> sys.stderr, "doc/announcement.txt contains non-ascii: %s" \ % cause sys.exit(42)
