[issue7773] platform._parse_release_file() can cause UnboundLocalError

2010-01-25 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: A user of Portage had incorrect release file. https://bugs.gentoo.org/show_bug.cgi?id=301848 -- ___ Python tracker ___

[issue7773] platform._parse_release_file() can cause UnboundLocalError

2010-01-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Arfrever Frehtes Taifersar Arahesis wrote: > > Arfrever Frehtes Taifersar Arahesis added the > comment: > > My release file actually is correct (non-empty). Could you post it on the ticket, so that I can check what's causing the problem ?! Thanks, --

[issue7773] platform._parse_release_file() can cause UnboundLocalError

2010-01-25 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: My release file actually is correct (non-empty). -- ___ Python tracker ___ ___

[issue7773] platform._parse_release_file() can cause UnboundLocalError

2010-01-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Could you provide a dump of the (whole) release file ? It's a bit strange to have an empty release file. Thanks. -- ___ Python tracker ___

[issue7773] platform._parse_release_file() can cause UnboundLocalError

2010-01-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thanks for the patch! Applied in r77735. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue7773] platform._parse_release_file() can cause UnboundLocalError

2010-01-24 Thread Brian Curtin
Changes by Brian Curtin : -- keywords: +needs review priority: -> normal stage: -> patch review type: -> behavior ___ Python tracker ___ ___

[issue7773] platform._parse_release_file() can cause UnboundLocalError

2010-01-24 Thread Meador Inge
Meador Inge added the comment: Updated the patch to add a test case in 'test_platform'. I also added a comment explaining the change and removed a redundant assignment. -- nosy: +minge Added file: http://bugs.python.org/file15997/issue-7773.patch _

[issue7773] platform._parse_release_file() can cause UnboundLocalError

2010-01-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: An accompanying test would be wonderful. -- nosy: +benjamin.peterson ___ Python tracker ___ ___ P

[issue7773] platform._parse_release_file() can cause UnboundLocalError

2010-01-24 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +lemburg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue7773] platform._parse_release_file() can cause UnboundLocalError

2010-01-24 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis : When the release file doesn't contain some data, then platform._parse_release_file() causes UnboundLocalError. I'm attaching the patch to fix it. $ python2.7 -c 'import platform; platform._parse_release_file("")' Traceback (most recent