(*args, **kwargs)
Redefine print() function; the reason is the inconsistent treatment of
        unicode literals among Python versions used in ST2.
        Redefining/tweaking built-in things is relatively safe; of course, when
        ST2 will become irrelevant, this def might be removed undoubtedly.
Redefine print() function; the reason is the inconsistent treatment of
        unicode literals among Python versions used in ST2.
        Redefining/tweaking built-in things is relatively safe; of course, when
        ST2 will become irrelevant, this def might be removed undoubtedly.
Redefine print () function ; the reason is the inconsistent treatment of unicode literals among Python versions used in ST2 . Redefining / tweaking built - in things is relatively safe ; of course when ST2 will become irrelevant this def might be removed undoubtedly .
def print(*args, **kwargs):
    """ Redefine print() function; the reason is the inconsistent treatment of
        unicode literals among Python versions used in ST2.
        Redefining/tweaking built-in things is relatively safe; of course, when
        ST2 will become irrelevant, this def might be removed undoubtedly.
    """
    if not (ST3 or NT):
        args = (s.encode('utf-8') if isinstance(s, unicode) else str(s) for s in args)
    else:
        args = (s if isinstance(s, str if ST3 else unicode) else str(s) for s in args)
    sep, end = kwargs.get('sep', ' '), kwargs.get('end', '\n')
    sys.stdout.write(sep.join(s for s in args) + end)
def print ( * args , * * kwargs ) : if not ( ST3 or NT ) : args = ( s . encode ( 'utf-8' ) if isinstance ( s , unicode ) else str ( s ) for s in args ) else : args = ( s if isinstance ( s , str if ST3 else unicode ) else str ( s ) for s in args ) sep , end = kwargs . get ( 'sep' , ' ' ) , kwargs . get ( 'end' , '\n' ) sys . stdout . write ( sep . join ( s for s in args ) + end )