def getUserAgent():
    printDebugMessage(u'getUserAgent', u'Begin', 11)
    urllib_agent = (u'Python-urllib/%s' % urllib_version)
    clientRevision = version
    try:
        pythonversion = platform.python_version()
        pythonsys = platform.system()
    except ValueError:
        (pythonversion, pythonsys) = ('Unknown', 'Unknown')
    user_agent = (u'EBI-Sample-Client/%s (%s; Python %s; %s) %s' % (clientRevision, os.path.basename(__file__), pythonversion, pythonsys, urllib_agent))
    printDebugMessage(u'getUserAgent', (u'user_agent: ' + user_agent), 12)
    printDebugMessage(u'getUserAgent', u'End', 11)
    return user_agent
def getUserAgent():
    printDebugMessage(u'getUserAgent', u'Begin', 11)
    urllib_agent = (u'Python-urllib/%s' % urllib_version)
    clientRevision = version
    try:
        pythonversion = platform.python_version()
        pythonsys = platform.system()
    except ValueError:
        (pythonversion, pythonsys) = ('Unknown', 'Unknown')
    user_agent = (u'EBI-Sample-Client/%s (%s; Python %s; %s) %s' % (clientRevision, os.path.basename(__file__), pythonversion, pythonsys, urllib_agent))
    printDebugMessage(u'getUserAgent', (u'user_agent: ' + user_agent), 12)
    printDebugMessage(u'getUserAgent', u'End', 11)
    return user_agent