Merge pull request #7 from jstenar/master

History and logserver fix
This commit is contained in:
Jörgen Stenarson
2012-08-21 00:38:41 -07:00
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -98,6 +98,7 @@ class LineHistory(object):
def add_history(self, line):
'''Append a line to the history buffer, as if it was the last line typed.'''
line = ensure_unicode(line)
if not hasattr(line, "get_line_text"):
line = lineobj.ReadLineTextBuffer(line)
if not line.get_line_text():
+1 -1
View File
@@ -10,7 +10,7 @@ from __future__ import print_function, unicode_literals, absolute_import
import logging
import logging.handlers
import struct, socket
from .unicode_helper import ensure_unicode
from pyreadline.unicode_helper import ensure_unicode
try:
import msvcrt
except ImportError: