mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 11:52:01 +00:00
zerver/lib: Remove u prefix from strings.
License: Apache-2.0 Signed-off-by: rht <rhtbot@protonmail.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user