8000 Fix ReadOnlyScoped doc with_scopes (#219) · sktt/google-auth-library-python@f682cb2 · GitHub
[go: up one dir, main page]

Skip to content

Commit f682cb2

Browse files
xmedekoJon Wayne Parrott
authored andcommitted
Fix ReadOnlyScoped doc with_scopes (googleapis#219)
1 parent 2857265 commit f682cb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/auth/credentials.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class ReadOnlyScoped(object):
173173
174174
if credentials.requires_scopes:
175175
# Scoping is required.
176-
credentials = credentials.create_scoped(['one', 'two'])
176+
credentials = credentials.with_scopes(scopes=['one', 'two'])
177177
178178
Credentials that require scopes must either be constructed with scopes::
179179

0 commit comments

Comments
 (0)
0