From: Anders Kaseorg Date: Tue, 30 Jun 2009 20:27:29 +0000 (-0400) Subject: TracZephyrPlugin: Escape @ as @@. X-Git-Url: https://sipb.mit.edu/gitweb.cgi/snippets/.git/commitdiff_plain/0e5f06a195f44b9f8c33cb9d2efdb4773c3d82b7 TracZephyrPlugin: Escape @ as @@. (This will need to be moved if someone implements color support later.) Signed-off-by: Anders Kaseorg --- diff --git a/TracZephyrPlugin/ZephyrPlugin.py b/TracZephyrPlugin/ZephyrPlugin.py index 5546bda..0f40125 100644 --- a/TracZephyrPlugin/ZephyrPlugin.py +++ b/TracZephyrPlugin/ZephyrPlugin.py @@ -18,7 +18,7 @@ class ZephyrPlugin(Component): ['-c', zclass, '-i', 'trac-#%s' % id], stdin=subprocess.PIPE) - p.stdin.write(message.encode('utf-8', 'replace')) + p.stdin.write(message.replace('@', '@@').encode('utf-8', 'replace')) p.stdin.close() p.wait()