[hackers] [wmii] [pygmi] Make sure Ctl#ctl strings are unicode before joining them. Fixes issue #194. || Kris Maglione

From: <hg_AT_suckless.org>
Date: Tue, 15 Jun 2010 16:21:43 +0000 (UTC)

changeset: 2727:5a3018702f8b
tag: tip
user: Kris Maglione <kris_AT_suckless.org>
date: Tue Jun 15 12:21:35 2010 -0400
files: alternative_wmiircs/python/pygmi/fs.py
description:
[pygmi] Make sure Ctl#ctl strings are unicode before joining them. Fixes issue #194.

diff -r 96ef87fb9d23 -r 5a3018702f8b alternative_wmiircs/python/pygmi/fs.py
--- a/alternative_wmiircs/python/pygmi/fs.py Mon Jun 14 10:46:46 2010 -0400
+++ b/alternative_wmiircs/python/pygmi/fs.py Tue Jun 15 12:21:35 2010 -0400
@@ -65,7 +65,7 @@
         """
         Arguments are joined by ascii spaces and written to the ctl file.
         """
- client.awrite(self.ctl_path, ' '.join(args))
+ client.awrite(self.ctl_path, u' '.join(map(unicode, args)))
 
     def __getitem__(self, key):
         for line in self.ctl_lines():
Received on Tue Jun 15 2010 - 16:21:43 UTC

This archive was generated by hypermail 2.2.0 : Tue Jun 15 2010 - 16:24:04 UTC