fix != -> == typo (#34568)
This commit is contained in:
parent
dceb4c9d65
commit
1020b65297
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue