1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-15 01:24:29 +02:00

formatting

This commit is contained in:
Kelly Brazil
2022-02-07 16:58:06 -08:00
parent f6c1463c15
commit 73e8391653

View File

@ -107,8 +107,10 @@ def compatibility(mod_name: str, compatible: List, quiet: bool = False) -> None:
if not platform_found:
mod = mod_name.split('.')[-1]
compat_list = ', '.join(compatible)
warning_message([f'{mod} parser not compatible with your OS ({sys.platform}).',
f'Compatible platforms: {compat_list}'])
warning_message([
f'{mod} parser not compatible with your OS ({sys.platform}).',
f'Compatible platforms: {compat_list}'
])
def has_data(data: str) -> bool:
@ -229,7 +231,10 @@ def input_type_check(data: str) -> None:
class timestamp:
def __init__(self, datetime_string: str, format_hint: Union[List, Tuple, None] = None) -> None:
def __init__(self,
datetime_string: str,
format_hint: Union[List, Tuple, None] = None
) -> None:
"""
Input a datetime text string of several formats and convert to a
naive or timezone-aware epoch timestamp in UTC.