Unusual use of python set syntax

Bug #947809 reported by Javier Collado
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox
New
Low
Tiago Salem Herrmann

Bug Description

While trying to build latest package from trunk, I've found that there's a syntax error in qt_interface.py in line 133:

    if state == {'', ''}:

Thanks to Brenand I found that the problem was only in python 2.6, which isn't supposed to be in precise, so it's fine.

Anyway, I'm curious about what's the reason to use:

    if state == {'', ''}:

instead of:

if state == {''}:

so I'm keeping the bug open just in case.

Changed in checkbox:
importance: Undecided → Critical
Changed in checkbox:
importance: Critical → Low
description: updated
Changed in checkbox:
assignee: nobody → Tiago Salem Herrmann (tiagosh)
description: updated
summary: - Invalid syntax in qt_interface.py
+ Unusual use of python set syntax
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.