From b2005e49da35105c6ec1e3e3c209f5fdeaca588c Mon Sep 17 00:00:00 2001 From: David Trail Date: Sun, 18 May 2014 22:05:12 +0200 Subject: [PATCH] Oops, missed a line in python 3 translation. --- shreddit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shreddit.py b/shreddit.py index a27fcc7..24f3a06 100755 --- a/shreddit.py +++ b/shreddit.py @@ -118,7 +118,7 @@ for thing in things: if verbose: msg = '/r/{3}/ #{0} with:\n\t"{1}" to\n\t"{2}"'.format( thing.id, - sub(r'\W', ' ', thing.body.encode('ascii', 'ignore')[:78]), + sub(r'\n\r\t', ' ', thing.body[:78]), replacement_text[:78], thing.subreddit )