Bug 5171 - missing else-statement in setCallback-function in snack.py
missing else-statement in setCallback-function in snack.py
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: newt (Show other bugs)
6.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Matt Wilson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-09-16 17:07 EDT by mz
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-02-09 01:51:59 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description mz 1999-09-16 17:07:22 EDT
My guess (as snack.py is really bad documented):
class Widget:
  def setCallback(self, obj, data = None):
    if data:
      self.w.setCallback(obj, data)
    self.w.setCallback(obj)
should be:
class Widget:
  def setCallback(self, obj, data = None):
    if data:
      self.w.setCallback(obj, data)
    else:
      self.w.setCallback(obj)
Comment 1 Matt Wilson 2000-02-09 01:51:59 EST
Good guess. :)

Fixed in next rawhide (newt >= 0.50.7-2)

Note You need to log in before you can comment on or make changes to this bug.