Default parameters should be type-consistant with expected values

This commit is contained in:
AntiCompositeNumber 2020-07-21 16:36:22 -04:00
parent 168ef1854a
commit 23443ba2ec
No known key found for this signature in database
GPG Key ID: A888A323AB506229

View File

@ -77,7 +77,7 @@ class Url:
header = self._get_response(req).headers
return "https://" + _archive_url_parser(header)
def _get(self, url=None, user_agent=None, encoding=None):
def _get(self, url="", user_agent="", encoding=""):
"""Return the source code of the supplied URL.
If encoding is not supplied, it is auto-detected from the response.
"""