def touch(file, times=None):
  if times:
    if len(times) > 2:
      raise ValueError('times must either be a tuple of (atime, mtime) or else a single time value '
                       'to use for both.')

    if len(times) == 1:
      times = (times, times)

  with safe_open(file, 'a'):
    os.utime(file, times)
Returns errors in a handler-specific format.
dataset/ETHPy150Open pantsbuild/pex/pex/common.py/touch--crossover with--dataset/ETHPy150Open nicolaiarocci/cerberus/cerberus/errors.py/BaseErrorHandler.__call__