Remove duplicate imports
This commit is contained in:
parent
8ed6ee97b2
commit
1cb6250f14
@ -133,7 +133,6 @@ def url_matches_criterion(purl: 'ParseResult', url: str, unquoted_path: str, mc:
|
||||
|
||||
if mc.type == 'file':
|
||||
import fnmatch
|
||||
import posixpath
|
||||
try:
|
||||
fname = posixpath.basename(unquoted_path)
|
||||
except Exception:
|
||||
|
||||
@ -29,7 +29,6 @@ active_async_requests: Dict[str, float] = {}
|
||||
|
||||
|
||||
def encode_response_for_peer(response: Any) -> bytes:
|
||||
import json
|
||||
return b'\x1bP@kitty-cmd' + json.dumps(response).encode('utf-8') + b'\x1b\\'
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user