diff --git a/tools/reblock_hande.py b/tools/reblock_hande.py index e77b26a2..fd0ed704 100755 --- a/tools/reblock_hande.py +++ b/tools/reblock_hande.py @@ -218,8 +218,9 @@ def parse_args(args): try: cols = pd.util.terminal.get_terminal_size()[0] except AttributeError: - # terminal module moved in pandas 0.20 - cols = pd.io.formats.terminal.get_terminal_size()[0] + # terminal module moved in pandas 0.20, set to some value. + # [todo] - print out pandas dataframe directly. + cols = 110 if not sys.stdout.isatty(): cols = -1