Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit65690d1

Browse files
Remove unused imports in example code
1 parentc4ba757 commit65690d1

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_gssapiimport HTTPSPNEGOAuth,REQUIRED
140-
>>> gssapi_auth= HTTPSPNEGOAuth(mutual_authentication=REQUIRED,opportunistic_auth=True)
139+
>>>from requests_gssapiimport 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_gssapiimport HTTPSPNEGOAuth,REQUIRED
155+
>>>from requests_gssapiimport 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_gssapiimport HTTPSPNEGOAuth,REQUIRED
171+
>>>from requests_gssapiimport 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)

[8]ページ先頭

©2009-2025 Movatter.jp