From: Greg Hewgill Date: Thu, 8 Jan 2009 09:17:06 +0000 (+1300) Subject: handle non-ASCII characters in userpic keywords X-Git-Tag: ljdump-1.3.2~10 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=58585cc8ce90b25a571782a1e4ccbce95a1eae25;p=oss%2Fljdump.git handle non-ASCII characters in userpic keywords --- diff --git a/ChangeLog b/ChangeLog index bce2f3e..9e05c74 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ ChangeLog - ljdump +Version 1.3.1 - 2009-01-08 + +- Handle userpic keywords with non-ASCII characters + Version 1.2 - 2006-09-08 - Fetch userpic data into userpics.xml diff --git a/ljdump.py b/ljdump.py index be2d7d6..e2114b3 100755 --- a/ljdump.py +++ b/ljdump.py @@ -162,7 +162,7 @@ r = server.LJ.XMLRPC.login(dochallenge({ 'getpickws': 1, 'getpickwurls': 1, }, Password)) -userpics = dict(zip(r['pickws'], r['pickwurls'])) +userpics = dict(zip(map(str, r['pickws']), r['pickwurls'])) userpics['*'] = r['defaultpicurl'] while True: