diff options
author | Christoph Zwerschke <cito@online.de> | 2011-06-05 13:02:02 +0200 |
---|---|---|
committer | Christoph Zwerschke <cito@online.de> | 2011-06-05 13:02:02 +0200 |
commit | 796b2ea5d4bb264a3fc291b4cf507e4953a98c69 (patch) | |
tree | 563e3b7127c178f94a731196a45586e245885cec | |
parent | 4964e7780911d32119ddfbef26c2ba20e5bc80d5 (diff) | |
download | markupsafe-796b2ea5d4bb264a3fc291b4cf507e4953a98c69.tar.gz |
Workaround for Issue7511 did not run under Python 3.
-rw-r--r-- | setup.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -48,9 +48,9 @@ class ve_build_ext(build_ext): build_ext.build_extension(self, ext) except ext_errors: raise BuildFailed() - except ValueError, err: - # may happen on Win 64 bit, see Python issue7511 - if "'path'" in str(err): + except ValueError: + # this can happen on Windows 64 bit, see Python issue 7511 + if "'path'" in str(sys.exc_info()[1]): # works with Python 2 and 3 raise BuildFailed() raise |