浏览代码

try to fix build on py32 again

Antoine Beaupré 9 年之前
父节点
当前提交
a3084b7174
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      borg/helpers.py

+ 1 - 1
borg/helpers.py

@@ -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