From 42388f4b63b99c4feb79b31e42bd8d5f80f602aa Mon Sep 17 00:00:00 2001 From: "Dusty.P" Date: Tue, 5 Jun 2018 22:49:30 -0800 Subject: [PATCH] test paginator --- exts/imports/utils.py | 1 - exts/repl.py | 3 --- exts/utils.py | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/exts/imports/utils.py b/exts/imports/utils.py index 56d9477..cc89772 100644 --- a/exts/imports/utils.py +++ b/exts/imports/utils.py @@ -176,7 +176,6 @@ class Paginator: bits = part.split(' ') for bit in bits: - print(bit) next_len = length + len(bit) + 1 if next_len <= self._max_line_length: out_str += bit + ' ' diff --git a/exts/repl.py b/exts/repl.py index 22ed677..490215c 100644 --- a/exts/repl.py +++ b/exts/repl.py @@ -71,12 +71,9 @@ class Repl: pass value = format_output(value) pag = Paginator() - print(value) pag.add(value) - print(ret) pag.add(f'\nReturned: {ret}') for page in pag.pages(): - print(page) await ctx.send(page) @commands.command(hidden=True) diff --git a/exts/utils.py b/exts/utils.py index 2369d67..5af61a4 100644 --- a/exts/utils.py +++ b/exts/utils.py @@ -491,7 +491,7 @@ class Utils: in_time = parsed_tz.localize(in_time) else: em.set_footer(text='Time not given. Using current time.') - in_time = parsed_tz.localize(datetime.utcnow()) + in_time = parsed_tz.localize(datetime.utcnow()) # TODO Fix this except ValueError: raise commands.CommandError(f'For some reason I can\'t parse this time string: \n' f'{orig_time} {time} {parsed_tz}\n'