style: Format code for better readability in io.py

This commit is contained in:
Paul Gauthier (aider) 2025-01-13 09:35:07 -08:00
parent c22202585d
commit 869f37cd89

View file

@ -251,8 +251,9 @@ class InputOutput:
f"Invalid line_endings value: {line_endings}. "
f"Must be one of: {', '.join(valid_line_endings)}"
)
self.newline = None if line_endings == "platform" \
else "\n" if line_endings == "lf" else "\r\n"
self.newline = (
None if line_endings == "platform" else "\n" if line_endings == "lf" else "\r\n"
)
self.dry_run = dry_run
current_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")