Blacking.
authorfunilrys <redacted>
Tue, 13 Jul 2021 18:14:25 +0000 (20:14 +0200)
committerfunilrys <redacted>
Tue, 13 Jul 2021 18:14:25 +0000 (20:14 +0200)
testUpdateHostsFile.py
updateHostsFile.py

index 95a2756457a06d72e2df08743ab14eccebf2e063..1f90e38986841c34357710931957ee4813f90bda 100644 (file)
@@ -543,7 +543,9 @@ class TestGatherCustomExclusions(BaseStdout):
     # Can only test in the invalid domain case
     # because of the settings global variable.
     @mock.patch("updateHostsFile.input", side_effect=["foo", "no"])
-    @mock.patch("updateHostsFile.is_valid_user_provided_domain_format", return_value=False)
+    @mock.patch(
+        "updateHostsFile.is_valid_user_provided_domain_format", return_value=False
+    )
     def test_basic(self, *_):
         gather_custom_exclusions("foo", [])
 
@@ -552,7 +554,9 @@ class TestGatherCustomExclusions(BaseStdout):
         self.assertIn(expected, output)
 
     @mock.patch("updateHostsFile.input", side_effect=["foo", "yes", "bar", "no"])
-    @mock.patch("updateHostsFile.is_valid_user_provided_domain_format", return_value=False)
+    @mock.patch(
+        "updateHostsFile.is_valid_user_provided_domain_format", return_value=False
+    )
     def test_multiple(self, *_):
         gather_custom_exclusions("foo", [])
 
index 4dc5a885b5cbf1694dff801f060d5edeba221921..4bc4a1175437c3e3909015f072cab05cc8ed70c1 100644 (file)
@@ -944,7 +944,7 @@ def remove_dups_and_excl(merge_file, exclusion_regexes, output_file=None):
             continue
 
         # Issue #1628
-        if ("@" in stripped_rule):
+        if "@" in stripped_rule:
             continue
 
         # Normalize rule
git clone https://git.99rst.org/PROJECT