def _base_authorization_headers(username, server):
 if (not username):
  if ('AUTOTEST_USER' in os.environ):
   username = os.environ['AUTOTEST_USER']
  else:
   username = getpass.getuser()
 return {'AUTHORIZATION': username}

def _base_authorization_headers ( username , server ) : if ( not username ) : if ( 'AUTOTEST_USER' in os . environ ) : username = os . environ [ 'AUTOTEST_USER' ] else : username = getpass . getuser ( ) return { 'AUTHORIZATION' : username }
dont call this directly .