]> wagner.pp.ru Git - oss/ljdump.git/commitdiff
handle non-ASCII characters in userpic keywords
authorGreg Hewgill <greg@hewgill.com>
Thu, 8 Jan 2009 09:17:06 +0000 (22:17 +1300)
committerGreg Hewgill <greg@hewgill.com>
Thu, 8 Jan 2009 09:23:56 +0000 (22:23 +1300)
ChangeLog
ljdump.py

index bce2f3e94880e422cdb1732d5d491a18ffe4d196..9e05c7412ec50af157544a90de80a5033aeb09b9 100644 (file)
--- 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
index be2d7d6ae610e4e512403d81ad9d486eb84dd394..e2114b33b86dbd9234c3719f9962c4eb75324acd 100755 (executable)
--- 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: