mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
python: Use urlsplit instead of urlparse.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
3853fa875a
commit
223b626256
@@ -295,3 +295,12 @@ rules:
|
||||
fix: time_machine.travel($TIME, tick=False)
|
||||
severity: ERROR
|
||||
message: "Use the time_machine package, rather than mocking timezone_now"
|
||||
|
||||
- id: urlparse
|
||||
languages: [python]
|
||||
pattern-either:
|
||||
- pattern: urllib.parse.urlparse
|
||||
- pattern: urllib.parse.urlunparse
|
||||
- pattern: urllib.parse.ParseResult
|
||||
severity: ERROR
|
||||
message: "Use urlsplit rather than urlparse"
|
||||
|
Reference in New Issue
Block a user