summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Zeyer <albert.zeyer@rwth-aachen.de>2011-05-13 21:22:11 +0200
committerAlbert Zeyer <albert.zeyer@rwth-aachen.de>2011-05-13 21:22:11 +0200
commit7aad77dc6550d12f9935c7e34cc32689c1dd9ecd (patch)
treef8993b256fed7f7074057385384fb1c69b70a2a3
parent04ce530c9416cac5d8662d73ab231f6dee355601 (diff)
strip chr(13) out of comment when printing on stdout
-rwxr-xr-xissues.py2
1 files changed, 1 insertions, 1 deletions
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...'