Skip to content

Commit

Permalink
stdio: Fix fancy_console default.
Browse files Browse the repository at this point in the history
Should default to enabled, since the POSIX check beforehand's pretty reliable
at keeping out bad clients.
  • Loading branch information
MostAwesomeDude committed Mar 27, 2011
1 parent eb6c260 commit 62488b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bravo/stdio.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
import termios
import tty
fancy_console = os.isatty(sys.__stdin__.fileno())
fancy_console = fancy_console and configuration.getboolean("bravo",
"fancy_console")
fancy_console = fancy_console and configuration.getbooleandefault("bravo",
"fancy_console", True)
except ImportError:
fancy_console = False

Expand Down

0 comments on commit 62488b1

Please sign in to comment.