New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxException: Unmatched '"' #86

Closed
sqlalchemy-bot opened this Issue Jun 5, 2008 · 3 comments

Comments

Projects
None yet
1 participant
@sqlalchemy-bot

sqlalchemy-bot commented Jun 5, 2008

Migrated issue, originally created by Anonymous

If I put the following in my template, I get a SyntaxException: <% somethingText = """ %>

Is this normal? Am I doing something wrong maybe? I'm using Mako 0.2.0 under mod_python. Here is part of the stacktrace:

File "e:\python\lib\site-packages\mako-0.2.0-py2.5.egg\mako\lookup.py", line 70, in get_template
return self.__load(srcfile, uri)

File "e:\python\lib\site-packages\mako-0.2.0-py2.5.egg\mako\lookup.py", line 112, in __load
self.__collection[uri] = Template(uri=uri, filename=posixpath.normpath(filename), lookup=self, module_filename=(self.modulename_callable is not None and self.modulename_callable(filename, uri) or None), **self.template_args)

File "e:\python\lib\site-packages\mako-0.2.0-py2.5.egg\mako\template.py", line 82, in init
_compile_module_file(self, file(filename).read(), filename, path)

File "e:\python\lib\site-packages\mako-0.2.0-py2.5.egg\mako\template.py", line 217, in _compile_module_file
node = lexer.parse()

File "e:\python\lib\site-packages\mako-0.2.0-py2.5.egg\mako\lexer.py", line 160, in parse
if self.match_python_block():

File "e:\python\lib\site-packages\mako-0.2.0-py2.5.egg\mako\lexer.py", line 274, in match_python_block
(text, end) = self.parse_until_text(r'%>')

File "e:\python\lib\site-packages\mako-0.2.0-py2.5.egg\mako\lexer.py", line 79, in parse_until_text
raise exceptions.SyntaxException("Unmatched '%s'" % match.group(1), **self.exception_kwargs)

Thank you.

@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Jun 6, 2008

Michael Bayer (@zzzeek) wrote:

yeah, this all comes from #20. This ticket is 95% a dupe of that one (though its a slightly different symptom, so I'll leave it open).

@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Feb 2, 2012

Michael Bayer (@zzzeek) wrote:

1efbc03

@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Feb 2, 2012

Changes by Michael Bayer (@zzzeek):

  • changed status to closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment