Skip to content

Commit

Permalink
[2270] C420 Unnecessary Dict Comprehension
Browse files Browse the repository at this point in the history
  • Loading branch information
Rixxan committed Jul 1, 2024
1 parent 18053bf commit e9755fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debug_webserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

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):
Expand Down

0 comments on commit e9755fa

Please sign in to comment.