An uninitialized variable in a driconf-0.9.1 file causes python to
complain.
I start driconf from a terminal without a pre-existing ~/.drirc
configuration file.
I open the "Application settings" dropdown at the bottom of the page.
I select "Add", and put in doom3-demo and doom.x86 in the dialog fields,
and select "OK".
At this point driconf spews forth it's displeasure upon stderr:
Code:
Traceback (most recent call last):
File "/usr/lib/driconf/driconf_simpleui.py", line 692, in changeApp
self.selectApp(app)
File "/usr/lib/driconf/driconf_simpleui.py", line 641, in selectApp
self.appPage = AppPage (self.driver, app)
File "/usr/lib/driconf/driconf_simpleui.py", line 347, in __init__
self.refreshOptions()
File "/usr/lib/driconf/driconf_simpleui.py", line 369, in refreshOptions
self.optionTree.append(sectIter, [
File "/usr/lib/driconf/driconf_simpleui.py", line 271, in lineWrap
head, tail = head + tail[:i] + '\n', tail[j:]
UnboundLocalError: local variable 'j' referenced before assignment
It must be a python interpreter change. It seems like variables must be
initialized before being used...
To fix it, add "j = i" at line 260 in /usr/lib/driconf/driconf_simpleui.py,
after the existing line "i = chars"
Felix Kuehling
None
None
Public
|
Date: 2007-02-18 17:17
|
| Filename | Description | Download |
|---|---|---|
| dri.patch | Patch to fix the error described above | Download |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use