Summary: | dev-python/fonttools-2.2: SyntaxError exceptions (as) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Martin Mokrejš <mmokrejs> |
Component: | [OLD] Core system | Assignee: | Gentoo Fonts Team <fonts> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | fauli, galtgendo, pabs3, python |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 230205 |
Description
Martin Mokrejš
2009-04-11 20:20:39 UTC
# equery belongs /usr/lib/python2.6/site-packages/FontTools/fontTools/ttLib/tables/_c_m_a_p.py [ Searching for file(s) /usr/lib/python2.6/site-packages/FontTools/fontTools/ttLib/tables/_c_m_a_p.py in *... ] dev-python/fonttools-2.2 (/usr/lib/python2.6/site-packages/FontTools/fontTools/ttLib/tables/_c_m_a_p.py) # This looks invalid, 'as' is now a keyword, so those lines are syntax errors. (In reply to comment #2) > This looks invalid, > 'as' is now a keyword, so those lines are syntax errors. There are also some SyntaxWarnings above SyntaxErrors. Compare: $ python -c 'assert (1 == 2, "some string")' <string>:1: SyntaxWarning: assertion is always true, perhaps remove parentheses? $ python -c 'assert 1 == 2, "some string"' Traceback (most recent call last): File "<string>", line 1, in <module> AssertionError: some string $ The former asserts that the '(1 == 2, "some string")' tuple is non-empty. http://docs.python.org/reference/simple_stmts.html#the-assert-statement This seems to be a Python 2.6 incompatability. (In reply to comment #4) > This seems to be a Python 2.6 incompatability. No. Syntax of assert statements was identical in older versions, but older versions weren't detecting incorrect usage of assert statements. I hadn't noticed 2 SyntaxErrors due to useless summary... Fixed. Fixed the two SyntaxWarnings upstream (the SyntaxErrors were long since fixed). It would have been nice if the SyntaxWarnings part of the patch had been forwarded upstream. Paul, thanks for pushing all reported here bugs upstream. BTW, do you want to be CC'ed to fonttools bugs reported in our bugzilla? If yes, I'll add your e-mail to metadata.xml and you'll be automatically CC'ed. Nah, just send anything upstream relevant to the upstream sourceforge bug tracker please. |