Skip to content

Commit ddb5b0f

Browse files
authored
Remove excess IRI matcher compilation (#55)
1 parent 190acd7 commit ddb5b0f

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/rfc3986/misc.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -110,28 +110,6 @@
110110
abnf_regexp.PORT_RE), re.UNICODE)
111111

112112

113-
IHOST_MATCHER = re.compile('^' + abnf_regexp.IHOST_RE + '$', re.UNICODE)
114-
115-
IPATH_MATCHER = re.compile(abnf_regexp.IPATH_RE, re.UNICODE)
116-
117-
IQUERY_MATCHER = re.compile(abnf_regexp.IQUERY_RE, re.UNICODE)
118-
119-
IFRAGMENT_MATCHER = re.compile(abnf_regexp.IFRAGMENT_RE, re.UNICODE)
120-
121-
122-
RELATIVE_IRI_MATCHER = re.compile(u'^%s(?:\\?%s)?(?:%s)?$' % (
123-
abnf_regexp.IRELATIVE_PART_RE,
124-
abnf_regexp.IQUERY_RE,
125-
abnf_regexp.IFRAGMENT_RE
126-
), re.UNICODE)
127-
128-
ABSOLUTE_IRI_MATCHER = re.compile(u'^%s:%s(?:\\?%s)?$' % (
129-
abnf_regexp.COMPONENT_PATTERN_DICT['scheme'],
130-
abnf_regexp.IHIER_PART_RE,
131-
abnf_regexp.IQUERY_RE[1:-1]
132-
), re.UNICODE)
133-
134-
135113
# Path merger as defined in http://tools.ietf.org/html/rfc3986#section-5.2.3
136114
def merge_paths(base_uri, relative_path):
137115
"""Merge a base URI's path with a relative URI's path."""

0 commit comments

Comments
 (0)