summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIb Lundgren <ib.lundgren@gmail.com>2014-06-10 11:31:21 +0100
committerIb Lundgren <ib.lundgren@gmail.com>2014-06-10 11:31:21 +0100
commit6f4fb95255b9242237edb3c22d7fcab791e77d8d (patch)
tree441ef5436a5ea3395d491f9376d981cd98c548b6
parent969d0994234454b05a7b310b8dd40e66e900eede (diff)
parenta05075dc4f316a600cd1a2374f783ddb0aaf2a0e (diff)
downloadoauthlib-6f4fb95255b9242237edb3c22d7fcab791e77d8d.tar.gz
Merge pull request #252 from teeberg/master
Copy variables dict before scrubbing secrets.
-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())