Debian Testing: Warning: 'with' will become a reserved keyword in Python 2.6

Bug #496162 reported by Angel Guzman Maeso
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Tivion
Fix Released
High
Angel Guzman Maeso

Bug Description

Originally from -Defero- on http://www.forosdelweb.com/f41/anuncio-tivion-0-0-1-reproductor-streaming-para-tv-online-ubuntu-731988/#post3203148
--------
/usr/share/tivion/utils.py:94: Warning: 'with' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
File "tivion.py", line 33, in <module>
import utils as u
File "/usr/share/tivion/utils.py", line 94
with open(self.path_cfg_file, 'wb') as cfg_file:
^
SyntaxError: invalid syntax

Note: Maybe a problem with python 2.5 and support for python 2.6

python --version
*Python 2.5.4*

description: updated
Changed in tivion:
assignee: nobody → Angel Guzman Maeso (shakaran)
importance: Undecided → High
milestone: none → tivion-0.0.3
status: New → Confirmed
Revision history for this message
Stefano Karapetsas (stefano-karapetsas) wrote :

Hi Angel,
I pushed a development branch (lp:~stefano-karapetsas/tivion/tivion-debian) to support python 2.5 in Tivion (the big difference between Debian and Ubuntu).
I solved the "with" syntax error and the process terminate problem (Popen.terminate is only in python 2.6).
Also I created an "unstable" folder to package Tivion for Debian (Debian has not mplayer-gui).

Revision history for this message
Angel Guzman Maeso (shakaran) wrote :

Hi Stefano, I commit your change here:

http://bazaar.launchpad.net/~shakaran/tivion/tivion/revision/199

I mix your solution with other offer by a-slack from https://forja.rediris.es/tracker/index.php?func=detail&aid=432&group_id=685&atid=2368 (in spanish).

We are support python 2.6, python 2.5 and I hope that less than python 2.5.

I commit the other changes for make Tivion debian compatible. Thanks for your contribution.

Changed in tivion:
milestone: tivion-0.0.3 → tivion-0.0.4
status: Confirmed → Fix Committed
Changed in tivion:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.