def restore(attributes): if attributes is not None and stty is not None: stty.restore(attributes)
def restore(attributes): stty.restore(attributes)