Skip to content

Commit

Permalink
fix: [parsers] codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
cvandeplas committed Jun 5, 2024
1 parent 3598161 commit e5f692d
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion parsers/accessibility_tcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ def parse_path(path: str) -> list | dict:
try:
return misc.json_serializable(sqlite2json.sqlite2struct(get_log_files(path)[0]))
except IndexError:
return {'error': 'No TCC.db file found in logs/Accessibility/ directory'}
return {'error': 'No TCC.db file found in logs/Accessibility/ directory'}
2 changes: 1 addition & 1 deletion parsers/appinstallation.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ def parse_path(path: str) -> list | dict:
try:
return misc.json_serializable(sqlite2json.sqlite2struct(get_log_files(path)[0]))
except IndexError:
return {'error': 'No AppUpdates.sqlitedb or appstored.sqlitedb file found in logs/appinstallation/ directory'}
return {'error': 'No AppUpdates.sqlitedb or appstored.sqlitedb file found in logs/appinstallation/ directory'}
2 changes: 1 addition & 1 deletion parsers/itunesstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ def parse_path(path: str) -> list | dict:
try:
return misc.json_serializable(sqlite2json.sqlite2struct(get_log_files(path)[0]))
except IndexError:
return {'error': 'No downloads.*.sqlitedb file found in logs/itunesstored/ directory'}
return {'error': 'No downloads.*.sqlitedb file found in logs/itunesstored/ directory'}
2 changes: 1 addition & 1 deletion parsers/networkextension.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ def parse_path(path: str) -> list | dict:
try:
return misc.load_plist_file_as_json(get_log_files(path)[0])
except IndexError:
return {'error': 'No com.apple.networkextension.plist file present'}
return {'error': 'No com.apple.networkextension.plist file present'}
2 changes: 1 addition & 1 deletion parsers/networkextensioncache.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ def parse_path(path: str) -> list | dict:
try:
return misc.load_plist_file_as_json(get_log_files(path)[0])
except IndexError:
return {'error': 'No com.apple.networkextension.cache.plist file present'}
return {'error': 'No com.apple.networkextension.cache.plist file present'}
2 changes: 1 addition & 1 deletion parsers/olddsc.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ def parse_path(path: str) -> list | dict:
try:
return misc.load_plist_file_as_json(get_log_files(path)[0])
except IndexError:
return {'error': 'No olddsc file present'}
return {'error': 'No olddsc file present'}
2 changes: 1 addition & 1 deletion parsers/psthread.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ def parse_path(path: str) -> list | dict:
raw_data = map(lambda s: s.strip().split(None, len(headers) - 1), input_clean)
return [dict(zip(headers, r)) for r in raw_data]
except IndexError:
return {'error': 'No ps_thread.txt file present'}
return {'error': 'No ps_thread.txt file present'}
2 changes: 1 addition & 1 deletion parsers/remotectl_dumpstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ def parse_path(path: str) -> list | dict:
try:
return parse_tab_based_hierarchal_file(get_log_files(path)[0])
except IndexError:
return {'error': 'No remotectl_dumpstate.txt file present'}
return {'error': 'No remotectl_dumpstate.txt file present'}

0 comments on commit e5f692d

Please sign in to comment.