[mythtv-commits] Ticket #13084: ttvdb.py will cease to function - TTVDB will discontinue support for V1 XML API in 3 months time on October 1st, 2017
MythTV
noreply at mythtv.org
Sun Aug 13 00:00:06 UTC 2017
#13084: ttvdb.py will cease to function - TTVDB will discontinue support for V1 XML
API in 3 months time on October 1st, 2017
-------------------------------------------------+-------------------------
Reporter: Frederick Henderson <frederickjh@…> | Owner:
| markspieth
Type: Bug Report - General | Status:
| assigned
Priority: minor | Milestone: 29.0
Component: MythTV - Mythmetadatalookup | Version:
| Unspecified
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------------------+-------------------------
Comment (by Bill Meek <keemllib@…>):
Mark,
Pardon my lack of Python skills, but it looks like version 2.x
supports two print %<x> syntaxes but 3.x only supports one:
{{{
$ python2
>>> print('''Some String: %s''') % 'something else'
Some String: something else
>>> print('''Some String: %s''' % 'something else')
Some String: something else
$ python3
>>> print('''Some String: %s''' % 'something else')
Some String: something else
>>> print('''Some String: %s''') % 'something else'
Some String: %s
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for %: 'NoneType' and 'str'
}}}
Not a big deal, but for any missing module, the error identifying
the module doesn't print out.
For example:
{{{
Traceback (most recent call last):
File "./ttvdb.py", line 765, in <module>
''') % e
TypeError: unsupported operand type(s) for %: 'NoneType' and
'ModuleNotFoundError'
}}}
I can make a patch if you want.
--
Ticket URL: <https://code.mythtv.org/trac/ticket/13084#comment:9>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list