try to fix build on py32 again

This commit is contained in:
Antoine Beaupré 2015-10-19 14:41:02 -04:00
parent 12d22d5940
commit a3084b7174
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ try:
except ImportError:
def get_terminal_size(fallback=(80, 24)):
TerminalSize = namedtuple('TerminalSize', ['columns', 'lines'])
return TerminalSize(os.environ.get('COLUMNS', int(fallback[0])), os.environ.get('LINES', int(fallback[1])))
return TerminalSize(int(os.environ.get('COLUMNS', int(fallback[0]))), int(os.environ.get('LINES', int(fallback[1]))))
import sys
import time
import unicodedata