Commit d7fdbc3f authored by Jeremy Hylton's avatar Jeremy Hylton

Move ts_regex to StructuredText.

Change one final use of the old regex module to ts_regex.
parent 962f147e
...@@ -134,9 +134,7 @@ Special symbology is used to indicate special constructs: ...@@ -134,9 +134,7 @@ Special symbology is used to indicate special constructs:
''' '''
import ts_regex import ts_regex
import regex import string, re
from ts_regex import gsub
import string,re
def untabify(aString, def untabify(aString,
...@@ -282,7 +280,7 @@ class StructuredText: ...@@ -282,7 +280,7 @@ class StructuredText:
""" """
def __init__(self, aStructuredString, level=0, def __init__(self, aStructuredString, level=0,
paragraph_divider=regex.compile('\(\r?\n *\)+\r?\n'), paragraph_divider=ts_regex.compile('\(\r?\n *\)+\r?\n'),
): ):
'''Convert a structured text string into a structured text object. '''Convert a structured text string into a structured text object.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment