[Moin-user] Server hanging

Thomas Waldmann tw-public at gmx.de
Thu Mar 10 04:00:54 EST 2011

> Here's the "import" section of my
> MoinMoin/support/werkzeug/templates.py:
> import sys
> import re
> import __builtin__ as builtins
> from compiler import ast, parse
> #from compiler.consts import SC_LOCAL, SC_GLOBAL, SC_FREE, SC_CELL
> from compiler.pycodegen import ModuleCodeGenerator
> from tokenize import PseudoToken
> from werkzeug import utils
> from werkzeug._internal import _decode_unicode
> If I delete the one line I have commented out above, is that all
> that's necessary?

Well, yes, you can remove it.
Just commenting the line of course also makes it work.

The constants aren't used. For py 2.6, the import works, because
compiler.consts has those constants, for py 2.7 it fails, because they
are not there any more.

More information about the Moin-user mailing list