mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
style: Format code for better readability in io.py
This commit is contained in:
parent
c22202585d
commit
869f37cd89
1 changed files with 3 additions and 2 deletions
|
@ -251,8 +251,9 @@ class InputOutput:
|
||||||
f"Invalid line_endings value: {line_endings}. "
|
f"Invalid line_endings value: {line_endings}. "
|
||||||
f"Must be one of: {', '.join(valid_line_endings)}"
|
f"Must be one of: {', '.join(valid_line_endings)}"
|
||||||
)
|
)
|
||||||
self.newline = None if line_endings == "platform" \
|
self.newline = (
|
||||||
else "\n" if line_endings == "lf" else "\r\n"
|
None if line_endings == "platform" else "\n" if line_endings == "lf" else "\r\n"
|
||||||
|
)
|
||||||
self.dry_run = dry_run
|
self.dry_run = dry_run
|
||||||
|
|
||||||
current_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
current_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue