From 2c6cfc97485900fbdb26955f71938a7242d39e9e Mon Sep 17 00:00:00 2001 From: Voussoir Date: Mon, 1 Dec 2014 17:09:13 -0800 Subject: [PATCH] else Fixed PYW issue --- ascii/ascii.py | 5 ++++- ascii/{ascii_gui.py => ascii_gui.pyw} | 0 2 files changed, 4 insertions(+), 1 deletion(-) rename ascii/{ascii_gui.py => ascii_gui.pyw} (100%) diff --git a/ascii/ascii.py b/ascii/ascii.py index f5f3121..2fc8ae1 100644 --- a/ascii/ascii.py +++ b/ascii/ascii.py @@ -112,7 +112,10 @@ def ascii(FILENAME, XVALUE, YVALUE, CONTRAST, TICKERFUNCTION): for yline in range(charspany): status = "%0.2f" % (yline / charspany) TICKERFUNCTION(status) - sys.stdout.flush() + try: + sys.stdout.flush() + except: + pass for xline in range(charspanx): xcoord = xline*XVALUE ycoord = yline*YVALUE diff --git a/ascii/ascii_gui.py b/ascii/ascii_gui.pyw similarity index 100% rename from ascii/ascii_gui.py rename to ascii/ascii_gui.pyw