@@ -45,7 +45,7 @@ python-gitlab:
4545 ' https' : os.environ.get(' https_proxy' ),
4646 ' http' : os.environ.get(' http_proxy' ),
4747 }
48- gl = gitlab.gitlab (url, token, api_version = 4 , session = session)
48+ gl = gitlab.Gitlab (url, token, api_version = 4 , session = session)
4949
5050 Reference:
5151https://requests.readthedocs.io/en/latest/user/advanced/#proxies
@@ -74,7 +74,7 @@ The following sample illustrates how to use a client-side certificate:
7474
7575 session = requests.Session()
7676 session.cert = (' /path/to/client.cert' , ' /path/to/client.key' )
77- gl = gitlab.gitlab (url, token, api_version = 4 , session = session)
77+ gl = gitlab.Gitlab (url, token, api_version = 4 , session = session)
7878
7979 Reference:
8080https://requests.readthedocs.io/en/latest/user/advanced/#client-side-certificates
@@ -96,7 +96,7 @@ supplying the ``obey_rate_limit`` argument.
9696 import gitlab
9797 import requests
9898
99- gl = gitlab.gitlab (url, token, api_version = 4 )
99+ gl = gitlab.Gitlab (url, token, api_version = 4 )
100100 gl.projects.list(get_all = True , obey_rate_limit = False )
101101
102102 If you do not disable the rate-limiting feature, you can supply a custom value
@@ -109,7 +109,7 @@ throttled, you can set this parameter to -1. This parameter is ignored if
109109 import gitlab
110110 import requests
111111
112- gl = gitlab.gitlab (url, token, api_version = 4 )
112+ gl = gitlab.Gitlab (url, token, api_version = 4 )
113113 gl.projects.list(get_all = True , max_retries = 12 )
114114
115115 .. warning ::
@@ -139,7 +139,7 @@ exception is raised for these errors.
139139 import gitlab
140140 import requests
141141
142- gl = gitlab.gitlab (url, token, api_version = 4 )
142+ gl = gitlab.Gitlab (url, token, api_version = 4 )
143143 gl.projects.list(get_all = True , retry_transient_errors = True )
144144
145145 The default ``retry_transient_errors `` can also be set on the ``Gitlab `` object
@@ -149,7 +149,7 @@ and overridden by individual API calls.
149149
150150 import gitlab
151151 import requests
152- gl = gitlab.gitlab (url, token, api_version = 4 , retry_transient_errors = True )
152+ gl = gitlab.Gitlab (url, token, api_version = 4 , retry_transient_errors = True )
153153 gl.projects.list(get_all = True ) # retries due to default value
154154 gl.projects.list(get_all = True , retry_transient_errors = False ) # does not retry
155155
@@ -166,7 +166,7 @@ parameter to that API invocation:
166166
167167 import gitlab
168168
169- gl = gitlab.gitlab (url, token, api_version = 4 )
169+ gl = gitlab.Gitlab (url, token, api_version = 4 )
170170 gl.projects.import_github(ACCESS_TOKEN , 123456 , " root" , timeout = 120.0 )
171171
172172 Typing
@@ -183,7 +183,7 @@ on your own, such as for nested API responses and ``Union`` return types. For ex
183183
184184 import gitlab
185185
186- gl = gitlab.gitlab (url, token, api_version = 4 )
186+ gl = gitlab.Gitlab (url, token, api_version = 4 )
187187 license = gl.get_license()
188188
189189 if TYPE_CHECKING :
0 commit comments