SyntaxError in python script

Bug #392870 reported by Anna Jonna Armannsdottir
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyscript (Ubuntu)
Fix Released
Medium
Luca Falavigna

Bug Description

Binary package hint: python-pyscript

Symptoms:

Processing triggers for menu ...
Processing triggers for python-support ...
Compiling /var/lib/python-support/python2.6/pyscript/groups.py ...
SyntaxError: ('invalid syntax', ('/var/lib/python-support/python2.6/pyscript/groups.py', 390, 6, " as = options.get('as', a2)\n"))

The file that contains the violating syntax:
ls -lFart /var/lib/python-support/python2.6/pyscript/groups.py
lrwxrwxrwx 1 root root 60 2009-06-27 09:33 /var/lib/python-support/python2.6/pyscript/groups.py -> /usr/share/python-support/python-pyscript/pyscript/groups.py

 /usr/share/python-support/python-pyscript/pyscript/groups.py
Belongs to the python-pyscript package.

Other info:

apt-cache policy python-pyscript
python-pyscript:
  Installed: 0.6.1-2
  Candidate: 0.6.1-2
  Version table:
 *** 0.6.1-2 0
        500 http://ftp.rhnet.is jaunty/universe Packages
        100 /var/lib/dpkg/status

# lsb_release -rd
Description: Ubuntu 9.04
Release: 9.04

Related branches

Changed in pyscript (Ubuntu):
assignee: nobody → Luca Falavigna (dktrkranz)
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pyscript - 0.6.1-2ubuntu1

---------------
pyscript (0.6.1-2ubuntu1) karmic; urgency=low

  * debian/patches/01_Python2.6_reserved_words.patch:
    - Do not use "as" as variable name, it's a reserved word in
      Python 2.6 (LP: #392870).

 -- Luca Falavigna <email address hidden> Sat, 27 Jun 2009 14:34:11 +0000

Changed in pyscript (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Luca Falavigna (dktrkranz) wrote :
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.