applied black
authorAnthony Molinaro <redacted>
Wed, 8 Apr 2020 05:44:37 +0000 (22:44 -0700)
committerAnthony Molinaro <redacted>
Wed, 8 Apr 2020 05:44:37 +0000 (22:44 -0700)
updateHostsFile.py

index 99b914f379ddda0e45ef5b36b48847b0bb23fa31..e23762999cab58e0f6dafd32af51a7add8e1a7c7 100644 (file)
@@ -257,8 +257,8 @@ def main():
 
     merge_file = create_initial_file()
     remove_old_hosts_file(
-      path_join_robust(settings["outputpath"], "hosts"),
-      settings["backup"])
+        path_join_robust(settings["outputpath"], "hosts"), settings["backup"]
+    )
     if settings["compress"]:
         final_file = open(path_join_robust(settings["outputpath"], "hosts"), "w+b")
         compressed_file = tempfile.NamedTemporaryFile()
@@ -1300,7 +1300,9 @@ def remove_old_hosts_file(old_file_path, backup):
     open(old_file_path, "a").close()
 
     if backup:
-        backup_file_path = old_file_path + "{}".format(time.strftime("%Y-%m-%d-%H-%M-%S"))
+        backup_file_path = old_file_path + "{}".format(
+            time.strftime("%Y-%m-%d-%H-%M-%S")
+        )
 
         # Make a backup copy, marking the date in which the list was updated
         shutil.copy(old_file_path, backup_file_path)
git clone https://git.99rst.org/PROJECT