[mythtv-users] problem with the new python bindings

Raymond Wagner raymond at wagnerrp.com
Fri Jan 29 03:13:18 UTC 2010


On 1/28/2010 20:43, freedenizen wrote:
> byte-compiling /usr/lib/python2.5/site-packages/MythTV/__init__.py to
> __init__.pyc
> usr/lib/python2.5/site-packages/MythTV/__init__.py:19: Warning: 'with'
> will become a reserved keyword in Python 2.6
>    File "usr/lib/python2.5/site-packages/MythTV/__init__.py", line 19
>      with warnings.catch_warnings():
>                  ^
> SyntaxError: invalid syntax
>    

The code it's failing on is a chunk of code I use to suppress a 
depreciation warning coming from MySQLdb.  While I added a check to only 
run it on 2.6, it seems it won't properly compile to bytecode either.


More information about the mythtv-users mailing list