New submission from Arfrever Frehtes Taifersar Arahesis 
<arfrever....@gmail.com>:

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 call last):
  File "<string>", line 1, in <module>
  File "/usr/lib64/python2.7/platform.py", line 285, in _parse_release_file
    return '', version, id
UnboundLocalError: local variable 'version' referenced before assignment

----------
components: Library (Lib)
files: python-fix_platform._parse_release_file.patch
keywords: patch
messages: 98250
nosy: Arfrever
severity: normal
status: open
title: platform._parse_release_file() can cause UnboundLocalError
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2
Added file: 
http://bugs.python.org/file15993/python-fix_platform._parse_release_file.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7773>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to