Ça ne fonctionne pas sous python 2.5 (sur debian lenny) :
$ python --version
Python 2.5.2
$ ./lm
./lm:78: Warning: 'with' will become a reserved keyword in Python 2.6
File "./lm", line 78
with open(os.path.expanduser('~/.lm_movies_cache'),'r') as f:
^
SyntaxError: invalid syntax
Par contre ça fonctionne bien sous python 2.6.5 (debian sid).
# Problème sous python 2.5
Posté par FlashCode (site web personnel, Mastodon) . En réponse au journal lm (list movies): un outil en ligne de commande pour lister vos films à la ls. Évalué à 1.
$ python --version
Python 2.5.2
$ ./lm
./lm:78: Warning: 'with' will become a reserved keyword in Python 2.6
File "./lm", line 78
with open(os.path.expanduser('~/.lm_movies_cache'),'r') as f:
^
SyntaxError: invalid syntax
Par contre ça fonctionne bien sous python 2.6.5 (debian sid).
WeeChat, the extensible chat client