fixed anomalous backslash in string
This commit is contained in:
@@ -63,9 +63,9 @@ import warnings
|
||||
import itertools
|
||||
from collections import namedtuple
|
||||
|
||||
RE_WORD = re.compile('\w+')
|
||||
RE_WORD = re.compile(r'\w+')
|
||||
RE_UNICODE_NAME = re.compile('^[A-Z0-9 -]+$')
|
||||
RE_CODEPOINT = re.compile('U\+([0-9A-F]{4,6})')
|
||||
RE_CODEPOINT = re.compile(r'U\+([0-9A-F]{4,6})')
|
||||
|
||||
INDEX_NAME = 'charfinder_index.pickle'
|
||||
MINIMUM_SAVE_LEN = 10000
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
import sys
|
||||
import re
|
||||
|
||||
NONWORD_RE = re.compile('\W+')
|
||||
NONWORD_RE = re.compile(r'\W+')
|
||||
|
||||
idx = {}
|
||||
with open(sys.argv[1], encoding='utf-8') as fp:
|
||||
|
||||
@@ -6,9 +6,9 @@ import re
|
||||
import reprlib
|
||||
|
||||
|
||||
RE_TOKEN = re.compile('\w+|\s+|[^\w\s]+')
|
||||
RE_TOKEN = re.compile(r'\w+|\s+|[^\w\s]+')
|
||||
RE_WORD = re.compile('\w+')
|
||||
RE_PUNCTUATION = re.compile('[^\w\s]+')
|
||||
RE_PUNCTUATION = re.compile(r'[^\w\s]+')
|
||||
|
||||
|
||||
class SentenceSlice:
|
||||
|
||||
Reference in New Issue
Block a user