mirror of
https://github.com/scito/extract_otp_secrets.git
synced 2025-12-16 07:17:44 +01:00
fix linting
This commit is contained in:
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:
|
||||
|
||||
Reference in New Issue
Block a user