get rid of u string literal

This commit is contained in:
j 2023-07-27 18:12:13 +02:00
commit 99e221095b
7 changed files with 98 additions and 98 deletions

View file

@ -13,13 +13,13 @@ def get_id(url):
def get_data(id):
'''
>>> get_data('129689')['cast'][1][1]
u'Marianne'
'Marianne'
>>> get_data('129689')['credits'][0][0]
u'Jean-Luc Godard'
'Jean-Luc Godard'
>>> get_data('129689')['posters'][0]
u'http://image.allmusic.com/00/adg/cov200/dru800/u812/u81260bbffr.jpg'
'http://image.allmusic.com/00/adg/cov200/dru800/u812/u81260bbffr.jpg'
>>> get_data('129689')['rating']
u'4.5'
'4.5'
'''
if id.startswith('http'):
id = get_id(id)