parameters: (app, version, contact=None)
docstring: Set the User-Agent to be used for requests to the MusicBrainz webservice.
      This must be set before requests are made.
docstring_summary: Set the User-Agent to be used for requests to the MusicBrainz webservice.
      This must be set before requests are made.
docstring_tokens: Set the User - Agent to be used for requests to the MusicBrainz webservice . This must be set before requests are made .
function: def set_useragent(app, version, contact=None):
      """Set the User-Agent to be used for requests to the MusicBrainz webservice.
      This must be set before requests are made."""
      global _useragent, _client
      if not app or not version:
          raise ValueError("App and version can not be empty")
      if contact is not None:
          _useragent = "%s/%s python-musicbrainzngs/%s ( %s )" % (app, version, _version, contact)
      else:
          _useragent = "%s/%s python-musicbrainzngs/%s" % (app, version, _version)
      _client = "%s-%s" % (app, version)
      _log.debug("set user-agent to %s" % _useragent)
function_tokens: def set_useragent ( app , version , contact = None ) : global _useragent , _client if not app or not version : raise ValueError ( "App and version can not be empty" ) if contact is not None : _useragent = "%s/%s python-musicbrainzngs/%s ( %s )" % ( app , version , _version , contact ) else : _useragent = "%s/%s python-musicbrainzngs/%s" % ( app , version , _version ) _client = "%s-%s" % ( app , version ) _log . debug ( "set user-agent to %s" % _useragent )