def _url(self, path, query=None):
    params = {}
    if query and isinstance(query, dict):
      params.update(query)
      path += '?%s' % urlencode(params)
    print 'api request url path: %s' % path
    return path
dataset/ETHPy150Open gregorynicholas/flask-github/flask_github/github.py/Github._url/original