Sfoglia il codice sorgente

rename written_list to list_obj in utils.save_list

quarrying 4 anni fa
parent
commit
eba866c506
2 ha cambiato i file con 3 aggiunte e 4 eliminazioni
  1. 3 3
      khandy/utils_file_io.py
  2. 0 1
      khandy/utils_fs.py

+ 3 - 3
khandy/utils_file_io.py

@@ -19,13 +19,13 @@ def load_list(filename, encoding='utf-8', start=0, stop=None, step=1):
     return lines
 
 
-def save_list(filename, written_list, encoding='utf-8', append_break=True):
+def save_list(filename, list_obj, encoding='utf-8', append_break=True):
     with open(filename, 'w', encoding=encoding) as f:
         if append_break:
-            for item in written_list:
+            for item in list_obj:
                 f.write(str(item) + '\n')
         else:
-            for item in written_list:
+            for item in list_obj:
                 f.write(str(item))
 
 

+ 0 - 1
khandy/utils_fs.py

@@ -1,4 +1,3 @@
-
 import os
 import shutil