Skip to content

Commit

Permalink
Apply black to context manager
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmundt committed Nov 20, 2023
1 parent 883c2ab commit 03d3aab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyomo/solver/IPOPT.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@ def solve(self, model, **kwds):
raise RuntimeError(
f"NL file with the same name {basename + '.nl'} already exists!"
)
with open(basename + '.nl', 'w') as nl_file, open(basename + '.row', 'w') as row_file, open(basename + '.col', 'w') as col_file:
with open(basename + '.nl', 'w') as nl_file, open(
basename + '.row', 'w'
) as row_file, open(basename + '.col', 'w') as col_file:
self.info = nl_writer.write(
model,
nl_file,
Expand Down

0 comments on commit 03d3aab

Please sign in to comment.