summaryrefslogtreecommitdiff
path: root/oauthlib/oauth1
diff options
context:
space:
mode:
authorJonas Trappenberg <jonas@gumstix.com>2014-06-09 10:21:42 -0700
committerJonas Trappenberg <jonas@gumstix.com>2014-06-09 10:21:42 -0700
commita05075dc4f316a600cd1a2374f783ddb0aaf2a0e (patch)
tree441ef5436a5ea3395d491f9376d981cd98c548b6 /oauthlib/oauth1
parent969d0994234454b05a7b310b8dd40e66e900eede (diff)
downloadoauthlib-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__.py2
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())