Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, columns, align_col=None, align_type='l', sort_by=None):
PrettyTable.__init__(self, columns)
if align_col:
self.align[align_col] = align_type
if sort_by:
self.sortby = sort_by
def __init__(self, columns, align_col=None, align_type='l', sort_by=None):
PrettyTable.__init__(self, columns)
if align_col:
self.align[align_col] = align_type
if sort_by:
self.sortby = sort_by
def __init__(self, show_empty=False, **kwargs):
if show_empty:
self.__empty = '(nil)'
else:
self.__empty = ''
prettytable.PrettyTable.__init__(self, **kwargs)