Skip to content

Commit

Permalink
Remove unused imports in example code
Browse files Browse the repository at this point in the history
  • Loading branch information
frozencemetery committed Apr 24, 2020
1 parent c4ba757 commit 65690d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ behavior can be altered by setting ``opportunistic_auth=True``:
.. code-block:: python
>>> import requests
>>> from requests_gssapi import HTTPSPNEGOAuth, REQUIRED
>>> gssapi_auth = HTTPSPNEGOAuth(mutual_authentication=REQUIRED, opportunistic_auth=True)
>>> from requests_gssapi import HTTPSPNEGOAuth
>>> gssapi_auth = HTTPSPNEGOAuth(opportunistic_auth=True)
>>> r = requests.get("https://windows.example.org/wsman", auth=gssapi_auth)
...
Expand All @@ -152,7 +152,7 @@ passing in a custom name (string or ``gssapi.Name``):
.. code-block:: python
>>> import requests
>>> from requests_gssapi import HTTPSPNEGOAuth, REQUIRED
>>> from requests_gssapi import HTTPSPNEGOAuth
>>> gssapi_auth = HTTPSPNEGOAuth(target_name="internalhost.local")
>>> r = requests.get("https://externalhost.example.org/", auth=gssapi_auth)
...
Expand All @@ -168,7 +168,7 @@ applicable). However, an explicit credential can be in instead, if desired.
>>> import gssapi
>>> import requests
>>> from requests_gssapi import HTTPSPNEGOAuth, REQUIRED
>>> from requests_gssapi import HTTPSPNEGOAuth
>>> name = gssapi.Name("user@REALM", gssapi.NameType.hostbased_service)
>>> creds = gssapi.Credentials(name=name, usage="initiate")
>>> gssapi_auth = HTTPSPNEGOAuth(creds=creds)
Expand Down

0 comments on commit 65690d1

Please sign in to comment.