Skip to content

Commit 9be4506

Browse files
author
Dorian Birraux
committed
init dict with values in oauth
1 parent 8f7281c commit 9be4506

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

wolframclient/evaluation/cloud/oauth.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,11 @@ def authenticate(self):
199199
)
200200
# todo use xauth server key/secret
201201
client = self.client_class(self.consumer_key, self.consumer_secret)
202-
params = dict()
203-
params["x_auth_username"] = self.xauth_credentials.user
204-
params["x_auth_password"] = self.xauth_credentials.password
205-
params["x_auth_mode"] = "client_auth"
202+
params = {
203+
"x_auth_username": self.xauth_credentials.user,
204+
"x_auth_password": self.xauth_credentials.password,
205+
"x_auth_mode": "client_auth"
206+
}
206207

207208
# avoid dumping password in log files.
208209
logging.disable(logging.DEBUG)

0 commit comments

Comments
 (0)