mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
refinement
This commit is contained in:
parent
526876a64f
commit
e4c20b129b
@ -3,6 +3,12 @@ from propsutil import get_entry_dict
|
|||||||
|
|
||||||
|
|
||||||
class ItemChange:
|
class ItemChange:
|
||||||
|
rel_path: str
|
||||||
|
key: str
|
||||||
|
prev_val: str
|
||||||
|
cur_val: str
|
||||||
|
type: str
|
||||||
|
|
||||||
def __init__(self, rel_path: str, key: str, prev_val: str, cur_val: str):
|
def __init__(self, rel_path: str, key: str, prev_val: str, cur_val: str):
|
||||||
"""Describes the change that occurred for a particular key of a properties file.
|
"""Describes the change that occurred for a particular key of a properties file.
|
||||||
|
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
class PropEntry:
|
class PropEntry:
|
||||||
|
rel_path: str
|
||||||
|
key: str
|
||||||
|
value: str
|
||||||
|
should_delete: str
|
||||||
|
|
||||||
def __init__(self, rel_path: str, key: str, value: str, should_delete: bool = False):
|
def __init__(self, rel_path: str, key: str, value: str, should_delete: bool = False):
|
||||||
"""Defines a property file entry to be updated in a property file.
|
"""Defines a property file entry to be updated in a property file.
|
||||||
|
|
||||||
|
16
release_scripts/localization_scripts/regexutil.py
Normal file
16
release_scripts/localization_scripts/regexutil.py
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
from typing import TypeVar, Callable, Tuple
|
||||||
|
|
||||||
|
|
||||||
|
def is_match(content: str, regex: str) -> bool:
|
||||||
|
pass
|
||||||
|
|
||||||
|
T = TypeVar('T')
|
||||||
|
|
||||||
|
def is_match_on_field(obj: T, prop_retriever: Callable[T, str]) -> bool:
|
||||||
|
pass
|
||||||
|
|
||||||
|
class SeparationResult:
|
||||||
|
|
||||||
|
def __init__(self, ):
|
||||||
|
|
||||||
|
def separate(obj: T, prop_retriever: Callable[T, str]) ->
|
Loading…
x
Reference in New Issue
Block a user