[2270] C420 Unnecessary Dict Comprehension

This commit is contained in:
David Sangrey committed 2024-07-01 14:56:51 -04:00
1 parent 18053bf959
commit e9755fae78
1 file changed
+1 -1
+1 -1
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):