Skip to content

Commit

Permalink
Try to fix encoding problem in CI test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ast0815 committed May 9, 2020
1 parent 413ba34 commit 18cc292
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions histoprint.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Simple function to plot the output of ``numpy.histogram`` to the console"""

from __future__ import division
from six import print_
from six import print_, ensure_str

import sys
import numpy as np
Expand Down Expand Up @@ -374,7 +374,7 @@ def print_hist(hist, file=sys.stdout, **kwargs):

count, edges = hist
hist_formatter = HistFormatter(edges, **kwargs)
print_(hist_formatter.format_histogram(count), end="", file=file)
print_(ensure_str(hist_formatter.format_histogram(count)), end="", file=file)


def text_hist(*args, **kwargs):
Expand Down

0 comments on commit 18cc292

Please sign in to comment.