Skip to content

Commit

Permalink
Is newspaper3k running on python 3.6 ? (#315)
Browse files Browse the repository at this point in the history
* Update .travis.yml

* Remove unused class constant "PUNCTUATION" which throws an error on python 3.6, because it contains invalid escape sequences.
  • Loading branch information
hartym authored and codelucas committed Jan 4, 2017
1 parent 90d379b commit 132db69
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
language: python
python:
- "3.3"
- "3.4"
- "3.5"
- "3.6"
install:
- pip install -r requirements.txt coverage coveralls
- python download_corpora.py
Expand Down
2 changes: 0 additions & 2 deletions newspaper/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ def set_word_count(self, cnt):

class StopWords(object):

PUNCTUATION = re.compile(
"[^\\p{Ll}\\p{Lu}\\p{Lt}\\p{Lo}\\p{Nd}\\p{Pc}\\s]")
TRANS_TABLE = str.maketrans('', '')
_cached_stop_words = {}

Expand Down

0 comments on commit 132db69

Please sign in to comment.