[pygmi] Make sure Ctl#ctl strings are unicode before joining them. Fixes issue #194.

This commit is contained in:
Kris Maglione 2010-06-15 12:21:35 -04:00
parent ee9b547b38
commit 52be8779bf

View File

@ -65,7 +65,7 @@ class Ctl(object):
""" """
Arguments are joined by ascii spaces and written to the ctl file. 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): def __getitem__(self, key):
for line in self.ctl_lines(): for line in self.ctl_lines():