File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -192,18 +192,16 @@ def _crawl(self) -> Registry:
192
192
contents = self ._contents .evolver ()
193
193
resources = [(uri , contents [uri ][0 ]) for uri in self ._uncrawled ]
194
194
while resources :
195
- base_uri , resource = resources .pop ()
195
+ uri , resource = resources .pop ()
196
196
anchors = pmap ((each .name , each ) for each in resource .anchors ())
197
197
198
198
id = resource .id ()
199
199
if id is None :
200
- uri = base_uri
201
-
202
200
if anchors :
203
201
old , old_anchors = contents [uri ]
204
202
contents [uri ] = old , old_anchors .update (anchors )
205
203
else :
206
- uri = urljoin (base_uri , id )
204
+ uri = urljoin (uri , id )
207
205
contents [uri ] = resource , anchors
208
206
209
207
resources .extend ((uri , each ) for each in resource .subresources ())
You can’t perform that action at this time.
0 commit comments