def CreateClient():
 client = gdata.docs.client.DocsClient(source=SampleConfig.APP_NAME)
 client.http_client.debug = SampleConfig.DEBUG
 try:
  gdata.sample_util.authorize_client(client, service=client.auth_service, source=client.source, scopes=client.auth_scopes)
 except gdata.client.BadAuthentication:
  exit('Invalid user credentials given.')
 except gdata.client.Error:
  exit('Login Error')
 return client

def CreateClient ( ) : client = gdata . docs . client . DocsClient ( source = SampleConfig . APP_NAME ) client . http_client . debug = SampleConfig . DEBUG try : gdata . sample_util . authorize_client ( client , service = client . auth_service , source = client . source , scopes = client . auth_scopes ) except gdata . client . BadAuthentication : exit ( 'Invalid user credentials given.' ) except gdata . client . Error : exit ( 'Login Error' ) return client
create a documents list client .