diff options
author | Philip Jenvey <pjenvey@underboss.org> | 2008-09-18 19:53:34 +0000 |
---|---|---|
committer | Philip Jenvey <pjenvey@underboss.org> | 2008-09-18 19:53:34 +0000 |
commit | fa8f1b4b754d0839e6605da2005be1046a1cd9a6 (patch) | |
tree | 93739dd03b5b82cf5ba3e71fa78b8a387bf29104 /lib | |
parent | b812d0a9784937aff55ce245d67e396c144604c3 (diff) | |
download | external_python_mako-fa8f1b4b754d0839e6605da2005be1046a1cd9a6.tar.gz external_python_mako-fa8f1b4b754d0839e6605da2005be1046a1cd9a6.tar.bz2 external_python_mako-fa8f1b4b754d0839e6605da2005be1046a1cd9a6.zip |
o fix compatibility with babel 0.9.3: stripping comment tags is now optional
and babel is responisble for stripping them when necessary
o remove the no longer needed Unicode/Str ast hack for Jython
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mako/_ast_util.py | 3 | ||||
-rw-r--r-- | lib/mako/ext/babelplugin.py | 3 |
2 files changed, 1 insertions, 5 deletions
diff --git a/lib/mako/_ast_util.py b/lib/mako/_ast_util.py index 968084b..0051dfe 100644 --- a/lib/mako/_ast_util.py +++ b/lib/mako/_ast_util.py @@ -46,9 +46,6 @@ if sys.platform.startswith('java'): result = result.split(".")[-1] if result.endswith("Type"): result = result[:-4] - if result == "Unicode": - # XXX: likely unecessary now - result = "Str" return result else: diff --git a/lib/mako/ext/babelplugin.py b/lib/mako/ext/babelplugin.py index 33d3523..e16e133 100644 --- a/lib/mako/ext/babelplugin.py +++ b/lib/mako/ext/babelplugin.py @@ -55,9 +55,8 @@ def extract_nodes(nodes, keywords, comment_tags, options): for comment_tag in comment_tags: if value.startswith(comment_tag): in_translator_comments = True - comment = value[len(comment_tag):].strip() translator_comments.extend(_split_comment(node.lineno, - comment)) + value)) continue if isinstance(node, parsetree.DefTag): |