fix != -> == typo (#34568)

This commit is contained in:
Harmen Stoppels 2022-12-17 20:15:15 +01:00 committed by GitHub
parent dceb4c9d65
commit 1020b65297
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -829,7 +829,7 @@ def get_versions(args, name):
valid_url = True
try:
parsed = urllib.parse.urlparse(args.url)
if not parsed.scheme or parsed.scheme != "file":
if not parsed.scheme or parsed.scheme == "file":
valid_url = False # No point in spidering these
except (ValueError, TypeError):
valid_url = False