Skip to content

Commit

Permalink
Revert "edge-case evaluation"
Browse files Browse the repository at this point in the history
This reverts commit 68aac0f.
  • Loading branch information
lnxpy committed Jun 1, 2024
1 parent 67c311a commit 9031b3f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pyaction/io.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from __future__ import annotations

import os
from contextlib import nullcontext
from io import TextIOWrapper

from rich.console import Console
Expand Down Expand Up @@ -37,9 +36,7 @@ def write(
)
console.print(table)
else:
with nullcontext(stream) if isinstance(stream, TextIOWrapper) else open(
stream, "w+"
) as streamline:
with open(stream, "+w") as streamline:
for var, val in context.items():
if "\n" in val:
streamline.write(MULTILINE_OUTPUT.format(variable=var, value=val))
Expand Down

0 comments on commit 9031b3f

Please sign in to comment.