Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #44880 > unrolled thread

unexpected syntax errors

Started byRobin Becker <robin@reportlab.com>
First post2013-05-07 12:02 +0100
Last post2013-05-07 12:02 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  unexpected syntax errors Robin Becker <robin@reportlab.com> - 2013-05-07 12:02 +0100

#44880 — unexpected syntax errors

FromRobin Becker <robin@reportlab.com>
Date2013-05-07 12:02 +0100
Subjectunexpected syntax errors
Message-ID<mailman.1403.1367924571.3114.python-list@python.org>
A user is getting this error

>
> New issue 8: bad raise syntax
> https://bitbucket.org/rptlab/reportlab/issue/8/bad-raise-syntax
>
> ........
>
>   File "/usr/lib/python2.7/site-packages/svg2rlg.py", line 16, in <module>
>     from reportlab.graphics import renderPDF
>   File "/usr/lib64/python2.7/site-packages/reportlab/graphics/renderPDF.py", line 168
>     raise ValueError, 'bad value for textAnchor '+str(text_anchor)
>                     ^
> SyntaxError: invalid syntax
>
>

however, I believe that this older syntax is allowed in python 2.7. We've had 
other issues like this raised from various distros which are apparently making 
changes to 2.7 which change the external behaviour eg spelling corrections to 
attribute names. Could this be one of those?
-- 
Robin Becker

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web