This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Tuple not callable in platform.py
Type: compile error Stage:
Components: Library (Lib) Versions: Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: amaury.forgeotdarc Nosy List: Feite, amaury.forgeotdarc
Priority: normal Keywords:

Created on 2008-10-21 13:37 by Feite, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg75024 - (view) Author: Feite Jaarsma (Feite) Date: 2008-10-21 13:37
The function 'def _test_parse_release_file()' has a for statement with 
a tuple as iter in it (examples of release file contents). This tuple 
is not a tuple. There is a ',' missing on every line (marked by '*'):

    for input, output in (
        # Examples of release file contents:
        ('SuSE Linux 9.3 (x86-64)', ('SuSE Linux ', '9.3', 'x86-64'))*
        ('SUSE LINUX 10.1 (X86-64)', ('SUSE LINUX ', '10.1', 'X86-64'))*
        ('SUSE LINUX 10.1 (i586)', ('SUSE LINUX ', '10.1', 'i586'))*
        ('Fedora Core release 5 (Bordeaux)', ('Fedora 
Core', '5', 'Bordeaux'))*
        ('Red Hat Linux release 8.0 (Psyche)', ('Red Hat 
Linux', '8.0', 'Psyche'))*
        ('Red Hat Linux release 9 (Shrike)', ('Red Hat 
Linux', '9', 'Shrike'))*
        ('Red Hat Enterprise Linux release 4 (Nahant)', ('Red Hat 
Enterprise Linux', '4', 'Nahant'))*
        ('CentOS release 4', ('CentOS', '4', None))*
        ('Rocks release 4.2.1 (Cydonia)', ('Rocks', '4.2.1', 'Cydonia'))
        ):
msg75026 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2008-10-21 14:34
Correct. 
Fortunately this is an internal function that is not used by any other
code. It should be corrected and moved to the test suite.
msg75051 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2008-10-21 22:02
Fixed with r66994. Thanks for the report!
History
Date User Action Args
2022-04-11 14:56:40adminsetgithub: 48407
2008-10-21 22:02:26amaury.forgeotdarcsetstatus: open -> closed
resolution: fixed
messages: + msg75051
2008-10-21 14:34:36amaury.forgeotdarcsetassignee: amaury.forgeotdarc
messages: + msg75026
nosy: + amaury.forgeotdarc
2008-10-21 13:37:40Feitecreate