1
0

move readline

This commit is contained in:
thomasv
2013-10-07 19:53:42 +02:00
parent 29848e64a2
commit 1741d1cbd0

View File

@@ -18,7 +18,7 @@
import re import re
import pkgutil import pkgutil
import sys, os, time, json, readline import sys, os, time, json
import optparse import optparse
import platform import platform
from decimal import Decimal from decimal import Decimal
@@ -166,7 +166,11 @@ if __name__ == '__main__':
time.sleep(0.1) time.sleep(0.1)
sys.exit(0) sys.exit(0)
# Python bug (http://bugs.python.org/issue1927) causes raw_input
# to be redirected improperly between stdin/stderr on Unix systems
# if readline is not initialised first.
import readline
if cmd not in known_commands: if cmd not in known_commands:
cmd = 'help' cmd = 'help'