] > Bug#310957: pylint: Failure to start due to "local variable '_id' referenced before assignment" (Logilab.org)

Email Bug#310957: pylint: Failure to start due to "local variable '_id' referenced before assignment"

from
to
Debian Bug Tracking System <submit at bugs dot debian dot org>
subject
Bug#310957: pylint: Failure to start due to "local variable '_id' referenced before assignment"
date
2005/05/27 10:19
Package: pylint
Version: 0.6.4-1
Severity: grave
Justification: renders package unusable


[fatal@falken]$ pylint testfile.py
Traceback (most recent call last):
  File "/usr/bin/pylint", line 4, in ?
    lint.Run(sys.argv[1:])
  File "/usr/lib/python2.3/site-packages/logilab/pylint/lint.py", line 707, in __init__
    linter.load_file_configuration()
  File "/usr/lib/python2.3/site-packages/logilab/common/configuration.py", line 362, in load_file_configuration
    provider.set_option(opt_name, value, opt_dict=opt_dict)
  File "/usr/lib/python2.3/site-packages/logilab/pylint/lint.py", line 286, in set_option
    meth(_id)
UnboundLocalError: local variable '_id' referenced before assignment

Changing line 286 to 'pass' works fine, but is most likely not what the author intended.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11.6-win4lin-ftl1
Locale: LANG=C, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8)

Versions of packages pylint depends on:
ii  python                        2.3.5-2    An interactive high-level object-o
ii  python2.3-pylint              0.6.4-1    python code static checker [built 

-- no debconf information