diff options
author | Brian Weber <bweber@twitter.com> | 2016-10-21 14:34:25 -0700 |
---|---|---|
committer | Brian Weber <bweber@twitter.com> | 2016-10-21 14:34:25 -0700 |
commit | ce756e750141b28ac55ea46219b7b3bacc73a2c1 (patch) | |
tree | 99596a4be2ac6b66efe082ad22216d6a12d392ee /oauthlib/oauth1 | |
parent | 67f973ff7f98bb3d892a33eda67ba1dab3bddead (diff) | |
download | oauthlib-ce756e750141b28ac55ea46219b7b3bacc73a2c1.tar.gz |
scrubbing rsa_key from __repr__
Diffstat (limited to 'oauthlib/oauth1')
-rw-r--r-- | oauthlib/oauth1/rfc5849/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/oauthlib/oauth1/rfc5849/__init__.py b/oauthlib/oauth1/rfc5849/__init__.py index 56b8c6f..997251e 100644 --- a/oauthlib/oauth1/rfc5849/__init__.py +++ b/oauthlib/oauth1/rfc5849/__init__.py @@ -105,6 +105,7 @@ class Client(object): def __repr__(self): attrs = vars(self).copy() attrs['client_secret'] = '****' if attrs['client_secret'] else None + attrs['rsa_key'] = '****' if attrs['rsa_key'] 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()) |