diff --git a/plugins/post_stats/post_stats.py b/plugins/post_stats/post_stats.py index 80cfdcd4..7347d58c 100644 --- a/plugins/post_stats/post_stats.py +++ b/plugins/post_stats/post_stats.py @@ -43,7 +43,7 @@ def calculate_stats(instance): tmp = raw_text # Process the text to remove punctuation - drop = u'.,?!@#$%^&*()_+-=\|/[]{}`~:;\'\"‘’—…“”' + drop = u'.,?!@#$%^&*()_+-=\\|/[]{}`~:;\'\"‘’—…“”' raw_text = raw_text.translate(dict((ord(c), u'') for c in drop)) # Count the words in the text