diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-07-07 20:52:31 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-07-07 20:52:31 -0400 |
commit | 0f58ab39bf6753492e565a85f9f436d476a550b1 (patch) | |
tree | 241293f5643da3d12148af15af3c81a79ea8c59e /mako/pyparser.py | |
parent | 936efb91e23058a0450eea823489514f4d422a51 (diff) | |
download | external_python_mako-0f58ab39bf6753492e565a85f9f436d476a550b1.tar.gz external_python_mako-0f58ab39bf6753492e565a85f9f436d476a550b1.tar.bz2 external_python_mako-0f58ab39bf6753492e565a85f9f436d476a550b1.zip |
epic trailing whitespace removal
Diffstat (limited to 'mako/pyparser.py')
-rw-r--r-- | mako/pyparser.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mako/pyparser.py b/mako/pyparser.py index cd7d04f..95ec86a 100644 --- a/mako/pyparser.py +++ b/mako/pyparser.py @@ -15,17 +15,17 @@ from mako import exceptions, util import operator if util.py3k: - # words that cannot be assigned to (notably + # words that cannot be assigned to (notably # smaller than the total keys in __builtins__) reserved = set(['True', 'False', 'None', 'print']) # the "id" attribute on a function node arg_id = operator.attrgetter('arg') else: - # words that cannot be assigned to (notably + # words that cannot be assigned to (notably # smaller than the total keys in __builtins__) reserved = set(['True', 'False', 'None']) - + # the "id" attribute on a function node arg_id = operator.attrgetter('id') @@ -42,7 +42,7 @@ except ImportError: def parse(code, mode='exec', **exception_kwargs): """Parse an expression into AST""" - + try: if _ast: @@ -54,8 +54,8 @@ def parse(code, mode='exec', **exception_kwargs): except Exception, e: raise exceptions.SyntaxException( "(%s) %s (%r)" % ( - e.__class__.__name__, - e, + e.__class__.__name__, + e, code[0:50] ), **exception_kwargs) |