Merge pull request #2274 from HullSeals/enhancement/2270/update-dict-fromkeys

[2270] C420 Unnecessary Dict Comprehension
This commit is contained in:
Phoebe authored and GitHub committed 2024-07-04 20:32:21 +02:00
commit 417d893aee
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):