Skip to content

Commit

Permalink
Merge pull request #97 from jwilk/python3.6
Browse files Browse the repository at this point in the history
Make docstrings that contain regexps raw
  • Loading branch information
rfk committed Jan 3, 2017
2 parents 3c44469 + 9eb6446 commit 39674ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions enchant/tokenize/__init__.py
Expand Up @@ -449,7 +449,7 @@ def set_offset(self,val,replaced=False):
# Pre-defined chunkers and filters start here

class URLFilter(Filter):
"""Filter skipping over URLs.
r"""Filter skipping over URLs.
This filter skips any words matching the following regular expression:
^[a-zA-Z]+:\/\/[^\s].*
Expand All @@ -464,7 +464,7 @@ def _skip(self,word):
return False

class WikiWordFilter(Filter):
"""Filter skipping over WikiWords.
r"""Filter skipping over WikiWords.
This filter skips any words matching the following regular expression:
^([A-Z]\w+[A-Z]+\w+)
Expand All @@ -478,7 +478,7 @@ def _skip(self,word):
return False

class EmailFilter(Filter):
"""Filter skipping over email addresses.
r"""Filter skipping over email addresses.
This filter skips any words matching the following regular expression:
^.+@[^\.].*\.[a-z]{2,}$
Expand Down

0 comments on commit 39674ee

Please sign in to comment.