Opened 15 years ago

Closed 15 years ago

#7081 closed patch (fixed)

Misnamed Variable in Python Bindings

Reported by: doug@… Owned by: Anduin Withers
Priority: minor Milestone: unknown
Component: Bindings - Python Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

The cursor in getRecorderList() is named "pc" instead of "c". This simple patch fixes it.

Attachments (1)

python.diff (461 bytes) - added by doug@… 15 years ago.

Download all attachments as: .zip

Change History (3)

Changed 15 years ago by doug@…

Attachment: python.diff added

comment:1 Changed 15 years ago by doug@…

In case it wasn't clear, the reason for this patch is that without it you get this error:

>>> m = MythTV()
>>> m.getRecorderList()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "MythTV.py", line 176, in getRecorderList
    c.execute('SELECT cardid FROM capturecard')
NameError: global name 'c' is not defined

comment:2 Changed 15 years ago by sphery

Resolution: fixed
Status: newclosed

(In [21938]) Fixes #7081. Fix a variable-name typo in the Python bindings using patch from Doug.

Note: See TracTickets for help on using tickets.