def __init__(self, target, stdout_flags=['-']):
        """Open `target` as stdout if it is empty or in `stdout_flags`."""
        if not target or target in stdout_flags:
            self.target = sys.stdout
        else:
            self.target = open(target, 'w')
def __init__ ( self , target , stdout_flags = [ '-' ] ) : if not target or target in stdout_flags : self . target = sys . stdout else : self . target = open ( target , 'w' )
Open `target` as stdout if it is empty or in `stdout_flags`.