We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6738165 commit 0e157c7Copy full SHA for 0e157c7
python_lint.py
@@ -770,7 +770,7 @@ def main() -> None:
770
logging.basicConfig(level=logging.DEBUG if args.debug else logging.INFO)
771
772
if any({linter not in LINTERS for linter in args.linter}):
773
- sanitized_linter = [linter.replace('\n', '').replace('\r', '') for linter in args.linter]
+ sanitized_linter = [re.sub(r'[\x00-\x1F]', '', linter) for linter in args.linter]
774
LOG.error("Invalid linter choice: %s", ', '.join(sanitized_linter))
775
sys.exit(1)
776
0 commit comments