Skip to content

Commit

Permalink
Apply black
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmundt committed Nov 21, 2023
1 parent d750dfb commit 4b624f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion pyomo/common/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,9 @@ def _value2string(prefix, value, obj):
try:
_data = value._data if value is obj else value
if getattr(builtins, _data.__class__.__name__, None) is not None:
_str += _dump(_data, default_flow_style=True, allow_unicode=True).rstrip()
_str += _dump(
_data, default_flow_style=True, allow_unicode=True
).rstrip()
if _str.endswith("..."):
_str = _str[:-3].rstrip()
else:
Expand Down
3 changes: 1 addition & 2 deletions pyomo/common/formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,7 @@ def writelines(self, sequence):
r'|(?:\[\s*[A-Za-z0-9\.]+\s*\] +)' # [PASS]|[FAIL]|[ OK ]
)
_verbatim_line_start = re.compile(
r'(\| )'
r'|(\+((-{3,})|(={3,}))\+)' # line blocks # grid table
r'(\| )' r'|(\+((-{3,})|(={3,}))\+)' # line blocks # grid table
)
_verbatim_line = re.compile(
r'(={3,}[ =]+)' # simple tables, ======== sections
Expand Down

0 comments on commit 4b624f4

Please sign in to comment.