This commit is contained in:
ines 2018-07-06 12:33:42 +02:00
parent 63f5651f8d
commit c001d46153

View File

@ -412,6 +412,7 @@ cdef class Tokenizer:
self.add_special_case(string, substrings)
return self
def _get_regex_pattern(regex):
'''Get a pattern string for a regex, or None if the pattern is None.'''
"""Get a pattern string for a regex, or None if the pattern is None."""
return None if regex is None else regex.__self__.pattern