Skip to content

Commit

Permalink
fix py3k
Browse files Browse the repository at this point in the history
  • Loading branch information
agroszer committed Aug 12, 2015
1 parent 60a9f10 commit 08525fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zope/exceptions/exceptionformatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ def _obeyLimit(self, result, template):
if limit is not None and len(result) > limit:
# cut out the middle part of the TB
tocut = len(result) - limit
middle = len(result) / 2
lower = middle - tocut / 2
middle = len(result) // 2
lower = middle - tocut // 2
msg = (template % {'omitted': tocut,
'limit': limit,
'class': self.__class__.__name__})
Expand Down

0 comments on commit 08525fc

Please sign in to comment.