Skip to content

Commit 05e2ffb

Browse files
committed
Remove spurious 'str()' conversion.
1 parent b042c22 commit 05e2ffb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oauth2/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def to_header(self, realm=''):
393393
"""Serialize as a header for an HTTPAuth request."""
394394
oauth_params = ((k, v) for k, v in self.items()
395395
if k.startswith('oauth_'))
396-
stringy_params = ((k, escape(str(v))) for k, v in oauth_params)
396+
stringy_params = ((k, escape(v)) for k, v in oauth_params)
397397
header_params = ('%s="%s"' % (k, v) for k, v in stringy_params)
398398
params_header = ', '.join(header_params)
399399

0 commit comments

Comments
 (0)