diff options
author | Ib Lundgren <ib.lundgren@gmail.com> | 2014-06-10 11:31:21 +0100 |
---|---|---|
committer | Ib Lundgren <ib.lundgren@gmail.com> | 2014-06-10 11:31:21 +0100 |
commit | 6f4fb95255b9242237edb3c22d7fcab791e77d8d (patch) | |
tree | 441ef5436a5ea3395d491f9376d981cd98c548b6 | |
parent | 969d0994234454b05a7b310b8dd40e66e900eede (diff) | |
parent | a05075dc4f316a600cd1a2374f783ddb0aaf2a0e (diff) | |
download | oauthlib-6f4fb95255b9242237edb3c22d7fcab791e77d8d.tar.gz |
Merge pull request #252 from teeberg/master
Copy variables dict before scrubbing secrets.
-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()) |