changeset 86:abfe2018f17c

work around missing import in werkzeug 0.6.2 posixemulation
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 07 Mar 2011 01:42:09 +0100
parents 0944980db255
children a9a20c02a854
files MoinMoin/util/monkeypatch.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/util/monkeypatch.py	Mon Mar 07 01:39:17 2011 +0100
+++ b/MoinMoin/util/monkeypatch.py	Mon Mar 07 01:42:09 2011 +0100
@@ -25,6 +25,11 @@
 werkzeug.serving.BaseRequestHandler = BaseRequestHandler
 werkzeug.serving.WSGIRequestHandler = BaseRequestHandler
 
+# werkzeug 0.6.2 has a missing import sys in posixemulation
+from werkzeug import posixemulation
+import sys
+posixemulation.sys = sys
+
 
 # flask patching -------------------------------------------------------------