def print_fw(iterable, joins=', ', prefix='', indent=0, width=79, trail=False):
    '''
    PPrint an iterable (of stringable elements).

        Entries are joined using `joins`
        A fixed_width (fw) is maintained of `width` chars per line
        Each line is indented with `indent`*4 spaces
        Lines are then prefixed with `prefix` string
        if `trail` a trailing comma is sent to stdout
        A newline is written after all is printed.
    '''
    shift_width = 4
    preline = '%s%s' %(' '*shift_width, prefix)
    linew = len(preline)
    sys.stdout.write(preline)
    for i, entry in enumerate(iterable):
        if not trail and i == len(iterable) - 1:
            sentry = str(entry)
        else:
            sentry = '%s%s' %(str(entry), joins)
        if width > linew + len(sentry):
            sys.stdout.write('\n%s' %(preline))
            linew = len(preline)
        sys.stdout.write(sentry)
        linew += len(sentry)
    sys.stdout.write('\n')
dataset/ETHPy150Open sixohsix/twitter/utils/update.py/print_fw/swapped operands of `>`