Browse Source

utils: Fix yapf formatting

Eloston 4 years ago
parent
commit
2d12ecfd88
2 changed files with 3 additions and 1 deletions
  1. 2 1
      utils/domain_substitution.py
  2. 1 0
      utils/tests/test_domain_substitution.py

+ 2 - 1
utils/domain_substitution.py

@@ -32,7 +32,7 @@ _ORIG_DIR = 'orig'
 
 # Constants for timestamp manipulation
 # Delta between all file timestamps in nanoseconds
-_TIMESTAMP_DELTA = 1*10**9
+_TIMESTAMP_DELTA = 1 * 10**9
 
 
 class DomainRegexList:
@@ -151,6 +151,7 @@ def _validate_file_index(index_file, resolved_tree, cache_index_files):
         cache_index_files.add(relative_path)
     return all_hashes_valid
 
+
 @contextlib.contextmanager
 def _update_timestamp(path: os.PathLike, set_new: bool) -> None:
     """

+ 1 - 0
utils/tests/test_domain_substitution.py

@@ -10,6 +10,7 @@ from pathlib import Path
 
 from .. import domain_substitution
 
+
 def test_update_timestamp():
     with tempfile.TemporaryDirectory() as tmpdirname:
         path = Path(tmpdirname, 'tmp_update_timestamp')