BIOSUtilities/common/text_ops.py
platomav a2eca0aac6 Revamped path-related operations
Fixed dependencies detecton

Fixed frozen state support
2022-04-17 20:48:43 +03:00

19 lines
482 B
Python

#!/usr/bin/env python3
#coding=utf-8
"""
Copyright (C) 2022 Plato Mavropoulos
"""
# Generate padding (spaces or tabs)
def padder(padd_count, tab=False):
return ('\t' if tab else ' ') * padd_count
# Get String from given input object
def to_string(input_object, sep_char=''):
if type(input_object).__name__ in ('list','tuple'):
output_string = sep_char.join(map(str, input_object))
else:
output_string = str(input_object)
return output_string