1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-12 23:37:14 +03:00

[2270] C420 Unnecessary Dict Comprehension

This commit is contained in:
David Sangrey 2024-07-01 14:56:51 -04:00
parent 18053bf959
commit e9755fae78
No known key found for this signature in database
GPG Key ID: 3AEADBB0186884BC

View File

@ -18,7 +18,7 @@ logger = get_main_logger()
output_lock = threading.Lock()
output_data_path = pathlib.Path(tempfile.gettempdir()) / f'{appname}' / 'http_debug'
SAFE_TRANSLATE = str.maketrans({x: '_' for x in "!@#$%^&*()./\\\r\n[]-+='\";:?<>,~`"})
SAFE_TRANSLATE = str.maketrans(dict.fromkeys("!@#$%^&*()./\\\r\n[]-+='\";:?<>,~`", '_'))
class LoggingHandler(server.BaseHTTPRequestHandler):