workaround for python2.6
This commit is contained in:
parent
828223ad82
commit
d8bb547e25
1 changed files with 6 additions and 1 deletions
|
@ -396,7 +396,12 @@ class Imdb(SiteParser):
|
||||||
title = t
|
title = t
|
||||||
return title
|
return title
|
||||||
|
|
||||||
types = {type: select_title(type) for type in types}
|
#FIXME: does work in python2.6, possible to import from __future__?
|
||||||
|
#types = {type: select_title(type) for type in types}
|
||||||
|
_types = {}
|
||||||
|
for type in types:
|
||||||
|
_types[type] = select_title(type)
|
||||||
|
types = _types
|
||||||
|
|
||||||
regexps = [
|
regexps = [
|
||||||
"^.+ \(imdb display title\) \(English title\)$",
|
"^.+ \(imdb display title\) \(English title\)$",
|
||||||
|
|
Loading…
Reference in a new issue