diff --git a/src/gam/cmd/oauth.py b/src/gam/cmd/oauth.py index 882cffa0..0e28cf69 100644 --- a/src/gam/cmd/oauth.py +++ b/src/gam/cmd/oauth.py @@ -659,7 +659,6 @@ def doOAuthRequest(currentScopes, login_hint, verifyScopes=False): # gam oauth|oauth2 create|request [] # gam oauth|oauth2 create|request [admin ] [scope|scopes ] def doOAuthCreate(): - Cmd = Cmd if not Cmd.PeekArgumentPresent(['admin', 'scope', 'scopes']): login_hint = getEmailAddress(noUid=True, optional=True) scopes = None @@ -729,8 +728,6 @@ def doOAuthDelete(): # gam oauth|oauth2 info|verify [showsecret] [accesstoken idtoken ] [showdetails] def doOAuthInfo(): - Cmd = Cmd - Ind = Ind credentials = access_token = id_token = None showDetails = showSecret = False while Cmd.ArgumentsRemaining(): @@ -781,7 +778,6 @@ def doOAuthInfo(): # gam oauth|oauth2 update [] # gam oauth|oauth2 update [admin ] def doOAuthUpdate(): - Cmd = Cmd if Cmd.PeekArgumentPresent(['admin']): Cmd.Advance() login_hint = getEmailAddress(noUid=True) @@ -818,7 +814,6 @@ def doOAuthRefresh(): # gam oauth|oauth2 export [] def doOAuthExport(): - Cmd = Cmd if Cmd.ArgumentsRemaining(): filename = getString(Cmd.OB_FILE_NAME) checkForExtraneousArguments()