From 7aad77dc6550d12f9935c7e34cc32689c1dd9ecd Mon Sep 17 00:00:00 2001 From: Albert Zeyer Date: Fri, 13 May 2011 21:22:11 +0200 Subject: strip chr(13) out of comment when printing on stdout --- issues.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/issues.py b/issues.py index 3e56a86..32a1729 100755 --- a/issues.py +++ b/issues.py @@ -128,7 +128,7 @@ def handle_tracker_item(item, issue_title_prefix): print 'Attaching label: %s' % label rest_call('issues/label/add', '%s/%s' % (label, number)) for comment in comments: - print 'Creating comment: %s' % comment[:50].replace('\n', ' ') + print 'Creating comment: %s' % comment[:50].replace('\n', ' ').replace(chr(13), '') rest_call('issues/comment', number, {'comment': comment}) if closed: print 'Closing...' -- cgit v1.2.1