diff src/tools/common/ansi.py @ 2167:4b78b4c7f805

core, frontends: various fixes for Libervia: - quick_app: don't fail when we can't get autodisconnect parameter - bridge: removed useless BridgeFrontend parent class - use of TypeError, unicode and list to workaround Pyjamas incompatibilities
author Goffi <goffi@goffi.org>
date Sun, 26 Feb 2017 18:23:01 +0100
parents a0fbb2b11fd0
children d3e48c9a255e
line wrap: on
line diff
--- a/src/tools/common/ansi.py	Sun Feb 26 18:20:27 2017 +0100
+++ b/src/tools/common/ansi.py	Sun Feb 26 18:23:01 2017 +0100
@@ -44,7 +44,7 @@
 
 try:
     tty = sys.stdout.isatty()
-except AttributeError:
+except (AttributeError, TypeError):  # FIXME: TypeError is here for Pyjamas, need to be removed
     tty = False
 if not tty:
     # we don't want ANSI escape codes if we are not outputing to a tty!