summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Zwerschke <cito@online.de>2011-06-05 13:02:02 +0200
committerChristoph Zwerschke <cito@online.de>2011-06-05 13:02:02 +0200
commit796b2ea5d4bb264a3fc291b4cf507e4953a98c69 (patch)
tree563e3b7127c178f94a731196a45586e245885cec
parent4964e7780911d32119ddfbef26c2ba20e5bc80d5 (diff)
downloadmarkupsafe-796b2ea5d4bb264a3fc291b4cf507e4953a98c69.tar.gz
Workaround for Issue7511 did not run under Python 3.
-rw-r--r--setup.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index 48d191c..0e092a0 100644
--- a/setup.py
+++ b/setup.py
@@ -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