zerver/lib: Remove u prefix from strings.

License: Apache-2.0
Signed-off-by: rht <rhtbot@protonmail.com>
This commit is contained in:
rht
2017-11-03 03:12:25 +01:00
committed by Tim Abbott
parent 5d04e29ac2
commit fef7d6ba09
18 changed files with 92 additions and 92 deletions

View File

@@ -39,7 +39,7 @@ class _RateLimitFilter(object):
if record.exc_info is not None:
tb = force_bytes('\n'.join(traceback.format_exception(*record.exc_info)))
else:
tb = force_bytes(u'%s' % (record,))
tb = force_bytes('%s' % (record,))
key = self.__class__.__name__.upper() + hashlib.sha1(tb).hexdigest()
duplicate = cache.get(key) == 1
if not duplicate: