From 58585cc8ce90b25a571782a1e4ccbce95a1eae25 Mon Sep 17 00:00:00 2001 From: Greg Hewgill Date: Thu, 8 Jan 2009 22:17:06 +1300 Subject: [PATCH] handle non-ASCII characters in userpic keywords --- ChangeLog | 4 ++++ ljdump.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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: -- 2.39.5