diff options
author | Jonas Trappenberg <jonas@gumstix.com> | 2014-06-09 10:21:42 -0700 |
---|---|---|
committer | Jonas Trappenberg <jonas@gumstix.com> | 2014-06-09 10:21:42 -0700 |
commit | a05075dc4f316a600cd1a2374f783ddb0aaf2a0e (patch) | |
tree | 441ef5436a5ea3395d491f9376d981cd98c548b6 /oauthlib/oauth1 | |
parent | 969d0994234454b05a7b310b8dd40e66e900eede (diff) | |
download | oauthlib-a05075dc4f316a600cd1a2374f783ddb0aaf2a0e.tar.gz |
Copy variables dict before scrubbing secrets.
This dict is the actual variables dict. Changing its members will directly
change the values of the current object. The __repr__ function overwrites both
secrets with stars.
Diffstat (limited to 'oauthlib/oauth1')
-rw-r--r-- | oauthlib/oauth1/rfc5849/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oauthlib/oauth1/rfc5849/__init__.py b/oauthlib/oauth1/rfc5849/__init__.py index 4589d54..405bf1f 100644 --- a/oauthlib/oauth1/rfc5849/__init__.py +++ b/oauthlib/oauth1/rfc5849/__init__.py @@ -104,7 +104,7 @@ class Client(object): raise ValueError('rsa_key is required when using RSA signature method.') def __repr__(self): - attrs = vars(self) + attrs = vars(self).copy() attrs['client_secret'] = '****' if attrs['client_secret'] else None attrs['resource_owner_secret'] = '****' if attrs['resource_owner_secret'] else None attribute_str = ', '.join('%s=%s' % (k, v) for k, v in attrs.items()) |