Remove unnecessary reference to private parsel.Selector._default_type (#5006)

This commit is contained in:
Adrián Chaves 2021-03-22 11:24:10 +01:00 committed by GitHub
parent 0e7ee1256c
commit 2973d8d51a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ class Selector(_ParselSelector, object_ref):
raise ValueError(f'{self.__class__.__name__}.__init__() received '
'both response and text')
st = _st(response, type or self._default_type)
st = _st(response, type)
if text is not None:
response = _response_from_text(text, st)