code: def new_temp_file(directory=None, hint=''):
      '''Return a new temporary file.'''
      return tempfile.NamedTemporaryFile(
          prefix='tmp-wpull-{0}-'.format(hint), suffix='.tmp', dir=directoryf new_temp_file(directory=None, hint=''):
      '''Return a new temporary file.'''
      return tempfile.NamedTemporaryFile(
          prefix='tmp-wpull-{0}-'.format(hint), suffix='.tmp', dir=directory)
docs: Return a new temporary file.