Skip to content

Commit c20baf9

Browse files
committed
black formatting
1 parent 2d3b315 commit c20baf9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

volatility3/framework/automagic/symbol_cache.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,8 @@ def update(self, progress_callback=None):
429429
progress_callback(0, "Reading remote ISF list")
430430
cursor = self._database.cursor()
431431
cursor.execute(
432-
f"SELECT cached FROM cache WHERE local = 0 and cached < datetime('now', '{self.cache_period}')" )
432+
f"SELECT cached FROM cache WHERE local = 0 and cached < datetime('now', '{self.cache_period}')"
433+
)
433434
remote_identifiers = RemoteIdentifierFormat(constants.REMOTE_ISF_URL)
434435
progress_callback(50, "Reading remote ISF list")
435436
for operating_system in constants.OS_CATEGORIES:
@@ -438,9 +439,11 @@ def update(self, progress_callback=None):
438439
)
439440
for identifier, location in identifiers:
440441
identifier = identifier.rstrip()
441-
identifier = identifier[:-1] if identifier.endswith(b"\x00") else identifier # Linux banners dumped by dwarf2json end with "\x00\n". If not stripped, the banner cannot match.
442+
identifier = (
443+
identifier[:-1] if identifier.endswith(b"\x00") else identifier
444+
) # Linux banners dumped by dwarf2json end with "\x00\n". If not stripped, the banner cannot match.
442445
cursor.execute(
443-
"INSERT OR REPLACE INTO cache(identifier, location, operating_system, local, cached) VALUES (?, ?, ?, ?, datetime('now'))",
446+
"INSERT OR REPLACE INTO cache(identifier, location, operating_system, local, cached) VALUES (?, ?, ?, ?, datetime('now'))",
444447
(identifier, location, operating_system, False),
445448
)
446449
progress_callback(100, "Reading remote ISF list")

0 commit comments

Comments
 (0)