Merge pull request #13 from drewcrawford/master

Use of a binary string was necessary in py3.4 to avoid throwing an excep...
pull/18/head
David "Naypam" Trail 10 years ago
commit 20d2b850a9

@ -132,7 +132,7 @@ for thing in things:
if verbose:
msg = '/r/{3}/ #{0} with:\n\t"{1}" to\n\t"{2}"'.format(
thing.id,
sub(r'\n\r\t', ' ', thing.body[:78].encode('utf-8')),
sub(b'\n\r\t', ' ', thing.body[:78].encode('utf-8')),
replacement_text[:78],
thing.subreddit
)

Loading…
Cancel
Save