[rkward-cvs] [rkward] scripts: Do not choke on lambdas
Yuri Chornoivan
yurchor at ukr.net
Sun Feb 1 07:49:03 UTC 2015
Git commit 1491c56dd938f5831e58edef33f8e555631f4f6b by Yuri Chornoivan.
Committed on 01/02/2015 at 07:48.
Pushed by yurchor into branch 'master'.
Do not choke on lambdas
M +1 -1 scripts/update_plugin_messages.py
http://commits.kde.org/rkward/1491c56dd938f5831e58edef33f8e555631f4f6b
diff --git a/scripts/update_plugin_messages.py b/scripts/update_plugin_messages.py
index ce0ee06..18cb068 100755
--- a/scripts/update_plugin_messages.py
+++ b/scripts/update_plugin_messages.py
@@ -148,7 +148,7 @@ def quote (text):
try:
text = text.decode ('utf-8', 'ignore')
except:
- print ("Python has trouble decoding this text: " + text)
+ print ("Python has trouble decoding this text: " + text.encode('utf-8'))
text = HTMLParser.HTMLParser ().unescape (text) # unescape character entities, Qt does so while parsing the xml
return "\"" + text.replace ("\\", "\\\\").replace ("\"", "\\\"") + "\""
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
rkward-cvs mailing list
rkward-cvs at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkward-cvs
More information about the rkward-tracker
mailing list