summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2018-06-13 19:48:39 +0200
committerGitHub <noreply@github.com>2018-06-13 19:48:39 +0200
commit3f88ad0dd92b6d5e418e2a615b57dc62a5f7b870 (patch)
treeadc87c98ddcc1d9e651fbfdd8a1cc15b62a711bb
parent59a19ca36c6790e3c813cb2742efdf8c5fdb122e (diff)
parent01969c21391c61c915f39ebda8dfb758400a45f2 (diff)
downloadgitlab-3f88ad0dd92b6d5e418e2a615b57dc62a5f7b870.tar.gz
Merge pull request #530 from stefancrain/master
Correct session example
-rw-r--r--docs/api-usage.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/api-usage.rst b/docs/api-usage.rst
index 4c57c29..ede2d47 100644
--- a/docs/api-usage.rst
+++ b/docs/api-usage.rst
@@ -283,7 +283,7 @@ The following sample illustrates how to use a client-side certificate:
import requests
session = requests.Session()
- s.cert = ('/path/to/client.cert', '/path/to/client.key')
+ session.cert = ('/path/to/client.cert', '/path/to/client.key')
gl = gitlab.gitlab(url, token, api_version=4, session=session)
Reference: