Skip to content

Commit

Permalink
Fix round() for Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ines committed Nov 17, 2018
1 parent 1bc57bc commit af6c978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wasabi/printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def divider(self, text='', char='=', show=True):
raise ValueError("Divider chars need to be one character long. "
"Received: {}".format(char))
if self.pretty:
deco = char * (round((self.line_max - len(text)) / 2) - 2)
deco = char * (int(round((self.line_max - len(text))) / 2) - 2)
text = ' {} '.format(text) if text else ''
text = _color('\n{deco}{text}{deco}'.format(deco=deco, text=text), bold=True)
if len(text) < self.line_max:
Expand Down

0 comments on commit af6c978

Please sign in to comment.