def _DownloadMenu(self):
    resource_id = ''
    resource_id = raw_input('Enter an resource id: ')
    file_path = ''
    file_path = raw_input('Save file to: ')

    if not file_path or not resource_id:
      return

    file_name = os.path.basename(file_path)
    ext = self._GetFileExtension(file_name)

    if not ext or ext not in gdata.docs.service.SUPPORTED_FILETYPES:
      print 'File type not supported. Check the file extension.'
      return
    else:
      content_type = gdata.docs.service.SUPPORTED_FILETYPES[ext]

    doc_type = resource_id[:resource_id.find(':')]

    # When downloading a spreadsheet, the authenticated request needs to be
    # sent with the spreadsheet service's auth token.
    if doc_type == 'spreadsheet':
      print 'Downloading spreadsheet to %s...' % (file_path,)
      docs_token = self.gd_client.GetClientLoginToken()
      self.gd_client.SetClientLoginToken(self.gs_client.GetClientLoginToken())
      self.gd_client.Export(resource_id, file_path, gid=0)
      self.gd_client.SetClientLoginToken(docs_token)
    else:
      print 'Downloading document to %s...' % (file_path,)
      self.gd_client.Export(resource_id, file_path)
Represent a None value with nothing instead of 'none'.
dataset/ETHPy150Open kuri65536/python-for-android/python-build/python-libs/gdata/samples/docs/docs_example.py/DocsSample._DownloadMenu--crossover with--dataset/ETHPy150Open beetbox/beets/beets/util/confit.py/Dumper.represent_none