werkzeug: Removed a dummy import. Not only is it unnecessary, but also no
authorThomas Waldmann <tw AT waldmann-edv DOT de>
Sun, 14 Nov 2010 14:39:07 +0100
changeset 5721a4a7f275b7b3
parent 5720 69668ad0cae7
child 5722 5a187ebb779b
werkzeug: Removed a dummy import. Not only is it unnecessary, but also no
longer supported in Python 2.7. This fixes #447 (werkzeug bugtracker).

Note: backported this fix to the werkzeug 0.5.1 we have bundled with MoinMoin.
If you use a werkzeug >= 0.6, it contains this fix already.
MoinMoin/support/werkzeug/templates.py
     1.1 --- a/MoinMoin/support/werkzeug/templates.py	Sun Oct 24 00:26:04 2010 +0200
     1.2 +++ b/MoinMoin/support/werkzeug/templates.py	Sun Nov 14 14:39:07 2010 +0100
     1.3 @@ -12,7 +12,6 @@
     1.4  import re
     1.5  import __builtin__ as builtins
     1.6  from compiler import ast, parse
     1.7 -from compiler.consts import SC_LOCAL, SC_GLOBAL, SC_FREE, SC_CELL
     1.8  from compiler.pycodegen import ModuleCodeGenerator
     1.9  from tokenize import PseudoToken
    1.10  from werkzeug import utils