File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change 110
110
abnf_regexp .PORT_RE ), re .UNICODE )
111
111
112
112
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
-
135
113
# Path merger as defined in http://tools.ietf.org/html/rfc3986#section-5.2.3
136
114
def merge_paths (base_uri , relative_path ):
137
115
"""Merge a base URI's path with a relative URI's path."""
You can’t perform that action at this time.
0 commit comments