Skip to content

Commit 65690d1

Browse files
Remove unused imports in example code
1 parent c4ba757 commit 65690d1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ behavior can be altered by setting ``opportunistic_auth=True``:
136136
.. code-block:: python
137137
138138
>>> import requests
139-
>>> from requests_gssapi import HTTPSPNEGOAuth, REQUIRED
140-
>>> gssapi_auth = HTTPSPNEGOAuth(mutual_authentication=REQUIRED, opportunistic_auth=True)
139+
>>> from requests_gssapi import HTTPSPNEGOAuth
140+
>>> gssapi_auth = HTTPSPNEGOAuth(opportunistic_auth=True)
141141
>>> r = requests.get("https://windows.example.org/wsman", auth=gssapi_auth)
142142
...
143143
@@ -152,7 +152,7 @@ passing in a custom name (string or ``gssapi.Name``):
152152
.. code-block:: python
153153
154154
>>> import requests
155-
>>> from requests_gssapi import HTTPSPNEGOAuth, REQUIRED
155+
>>> from requests_gssapi import HTTPSPNEGOAuth
156156
>>> gssapi_auth = HTTPSPNEGOAuth(target_name="internalhost.local")
157157
>>> r = requests.get("https://externalhost.example.org/", auth=gssapi_auth)
158158
...
@@ -168,7 +168,7 @@ applicable). However, an explicit credential can be in instead, if desired.
168168
169169
>>> import gssapi
170170
>>> import requests
171-
>>> from requests_gssapi import HTTPSPNEGOAuth, REQUIRED
171+
>>> from requests_gssapi import HTTPSPNEGOAuth
172172
>>> name = gssapi.Name("user@REALM", gssapi.NameType.hostbased_service)
173173
>>> creds = gssapi.Credentials(name=name, usage="initiate")
174174
>>> gssapi_auth = HTTPSPNEGOAuth(creds=creds)

0 commit comments

Comments
 (0)