File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -520,7 +520,7 @@ def mocked_file_write(*args):
520520 for expr in expressions [:i + 1 ]:
521521 expected_file_log .append ((f"{ str (expr )} \n " , ))
522522
523- with patch (' builtins.open' , mocked_open ):
523+ with patch (" builtins.open" , mocked_open ):
524524 Watches .add (we_a )
525525 Watches .add (we_b )
526526 Watches .add (we_c )
Original file line number Diff line number Diff line change @@ -846,10 +846,10 @@ def save(cls):
846846 return
847847
848848 try :
849- with open (get_watches_file_name (), 'w+' ) as histfile :
849+ with open (get_watches_file_name (), "w+" ) as histfile :
850850 for watch in cls .all ():
851851 if watch :
852- histfile .write (watch .expression + ' \n ' )
852+ histfile .write (watch .expression + " \n " )
853853
854854 except Exception as save_exc :
855855 settings_log .exception ("Failed to save watches" , save_exc )
@@ -864,7 +864,7 @@ def load(cls):
864864 watch_fn = get_watches_file_name ()
865865 if os .path .exists (watch_fn ):
866866 try :
867- with open (watch_fn , 'r' ) as histfile :
867+ with open (watch_fn , "r" ) as histfile :
868868 cls ._expressions = set ()
869869 for line in histfile .readlines ():
870870 cls ._expressions .add (WatchExpression (line .strip ()))
You can’t perform that action at this time.
0 commit comments