File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -157,47 +157,47 @@ impl UrlPattern {
157157 }
158158
159159 #[ getter]
160- pub fn get_protocol ( & self ) -> PyResult < & str > {
160+ pub fn protocol ( & self ) -> PyResult < & str > {
161161 Ok ( self . 0 . protocol ( ) )
162162 }
163163
164164 #[ getter]
165- pub fn get_username ( & self ) -> PyResult < & str > {
165+ pub fn username ( & self ) -> PyResult < & str > {
166166 Ok ( self . 0 . username ( ) )
167167 }
168168
169169 #[ getter]
170- pub fn get_password ( & self ) -> PyResult < & str > {
170+ pub fn password ( & self ) -> PyResult < & str > {
171171 Ok ( self . 0 . password ( ) )
172172 }
173173
174174 #[ getter]
175- pub fn get_hostname ( & self ) -> PyResult < & str > {
175+ pub fn hostname ( & self ) -> PyResult < & str > {
176176 Ok ( self . 0 . hostname ( ) )
177177 }
178178
179179 #[ getter]
180- pub fn get_port ( & self ) -> PyResult < & str > {
180+ pub fn port ( & self ) -> PyResult < & str > {
181181 Ok ( self . 0 . port ( ) )
182182 }
183183
184184 #[ getter]
185- pub fn get_pathname ( & self ) -> PyResult < & str > {
185+ pub fn pathname ( & self ) -> PyResult < & str > {
186186 Ok ( self . 0 . pathname ( ) )
187187 }
188188
189189 #[ getter]
190- pub fn get_search ( & self ) -> PyResult < & str > {
190+ pub fn search ( & self ) -> PyResult < & str > {
191191 Ok ( self . 0 . search ( ) )
192192 }
193193
194194 #[ getter]
195- pub fn get_hash ( & self ) -> PyResult < & str > {
195+ pub fn hash ( & self ) -> PyResult < & str > {
196196 Ok ( self . 0 . hash ( ) )
197197 }
198198
199199 #[ getter]
200- pub fn get_hasRegExpGroups ( & self ) -> PyResult < bool > {
200+ pub fn hasRegExpGroups ( & self ) -> PyResult < bool > {
201201 Ok ( self . 0 . has_regexp_groups ( ) )
202202 }
203203}
You can’t perform that action at this time.
0 commit comments