Apparently shlex.split doesn’t work on unicode.
authorAnders Kaseorg <andersk@mit.edu>
Tue, 30 Jun 2009 23:06:54 +0000 (19:06 -0400)
committerAnders Kaseorg <andersk@mit.edu>
Tue, 30 Jun 2009 23:06:54 +0000 (19:06 -0400)
TracZephyrPlugin/ZephyrPlugin.py

index fe46914b486df5c0421e11671329332672f55ddf..87c8762d7756c48a1a41ca637aab29bb6279b266 100644 (file)
@@ -11,7 +11,7 @@ class ZephyrPlugin(Component):
         zclass = self.config.get('ZephyrPlugin', 'class')
         if zclass == '':
             return
-        command = shlex.split(self.config.get('ZephyrPlugin', 'command'))
+        command = shlex.split(self.config.get('ZephyrPlugin', 'command').encode('utf-8'))
         if not command:
             command = ['zwrite', '-q', '-l', '-d']
         p = subprocess.Popen(command +