aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/mako/_ast_util.py3
-rw-r--r--lib/mako/ext/babelplugin.py3
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):