mirror of
https://github.com/scito/extract_otp_secret_keys.git
synced 2025-12-13 01:56:35 +01:00
fix linting
This commit is contained in:
parent
b89a338246
commit
f4389ca8a3
9 changed files with 53 additions and 39 deletions
2
utils.py
2
utils.py
|
|
@ -104,11 +104,13 @@ def read_file_to_str(filename):
|
|||
"""Returns a str."""
|
||||
return "".join(read_file_to_list(filename))
|
||||
|
||||
|
||||
def read_binary_file_as_stream(filename):
|
||||
"""Returns binary file content."""
|
||||
with open(filename, "rb",) as infile:
|
||||
return io.BytesIO(infile.read())
|
||||
|
||||
|
||||
def replace_escaped_octal_utf8_bytes_with_str(str):
|
||||
encoded_name_strings = re.findall(r'name: .*$', str, flags=re.MULTILINE)
|
||||
for encoded_name_string in encoded_name_strings:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue