Skip to content

Commit

Permalink
Fix Python 3 incompatibility in handlers.py (closes #281)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmalloc committed Dec 11, 2018
1 parent 94602c0 commit 668631a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions logbook/handlers.py
Expand Up @@ -498,8 +498,7 @@ def check_delivery(self, record):

if (not suppression_count and
len(self._record_limits) >= self.max_record_cache):
cache_items = self._record_limits.items()
cache_items.sort()
cache_items = sorted(self._record_limits.items())
del cache_items[:int(self._record_limits)
* self.record_cache_prune]
self._record_limits = dict(cache_items)
Expand Down

0 comments on commit 668631a

Please sign in to comment.