Skip to content

Commit

Permalink
- test_var_view.py, var_view.py: ruff compliance- prefer double quote…
Browse files Browse the repository at this point in the history
…s instead of single quotes
  • Loading branch information
Kevin-Prichard committed Oct 18, 2024
1 parent 1983fa3 commit 03da90e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pudb/test/test_var_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def mocked_file_write(*args):
for expr in expressions[:i + 1]:
expected_file_log.append((f"{str(expr)}\n", ))

with patch('builtins.open', mocked_open):
with patch("builtins.open", mocked_open):
Watches.add(we_a)
Watches.add(we_b)
Watches.add(we_c)
Expand Down
6 changes: 3 additions & 3 deletions pudb/var_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,10 +846,10 @@ def save(cls):
return

try:
with open(get_watches_file_name(), 'w+') as histfile:
with open(get_watches_file_name(), "w+") as histfile:
for watch in cls.all():
if watch:
histfile.write(watch.expression + '\n')
histfile.write(watch.expression + "\n")

except Exception as save_exc:
settings_log.exception("Failed to save watches", save_exc)
Expand All @@ -864,7 +864,7 @@ def load(cls):
watch_fn = get_watches_file_name()
if os.path.exists(watch_fn):
try:
with open(watch_fn, 'r') as histfile:
with open(watch_fn, "r") as histfile:
cls._expressions = set()
for line in histfile.readlines():
cls._expressions.add(WatchExpression(line.strip()))
Expand Down

0 comments on commit 03da90e

Please sign in to comment.