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


Groups > comp.lang.python > #44880

unexpected syntax errors

From Robin Becker <robin@reportlab.com>
Subject unexpected syntax errors
Date 2013-05-07 12:02 +0100
Newsgroups comp.lang.python
Message-ID <mailman.1403.1367924571.3114.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web