Remove duplicate imports

This commit is contained in:
pagedown 2021-11-30 18:54:44 +08:00
parent 8ed6ee97b2
commit 1cb6250f14
No known key found for this signature in database
GPG Key ID: E921CF18AC8FF6EB
2 changed files with 0 additions and 2 deletions

View File

@ -133,7 +133,6 @@ def url_matches_criterion(purl: 'ParseResult', url: str, unquoted_path: str, mc:
if mc.type == 'file': if mc.type == 'file':
import fnmatch import fnmatch
import posixpath
try: try:
fname = posixpath.basename(unquoted_path) fname = posixpath.basename(unquoted_path)
except Exception: except Exception:

View File

@ -29,7 +29,6 @@ active_async_requests: Dict[str, float] = {}
def encode_response_for_peer(response: Any) -> bytes: def encode_response_for_peer(response: Any) -> bytes:
import json
return b'\x1bP@kitty-cmd' + json.dumps(response).encode('utf-8') + b'\x1b\\' return b'\x1bP@kitty-cmd' + json.dumps(response).encode('utf-8') + b'\x1b\\'