mirror of https://github.com/borgbackup/borg.git
try to fix build on py32
This commit is contained in:
parent
f9bccd1987
commit
12d22d5940
|
@ -12,7 +12,7 @@ try:
|
|||
from shutil import get_terminal_size
|
||||
except ImportError:
|
||||
def get_terminal_size(fallback=(80, 24)):
|
||||
TerminalSize = namedtuple(TerminalSize, ['columns', 'lines'])
|
||||
TerminalSize = namedtuple('TerminalSize', ['columns', 'lines'])
|
||||
return TerminalSize(os.environ.get('COLUMNS', int(fallback[0])), os.environ.get('LINES', int(fallback[1])))
|
||||
import sys
|
||||
import time
|
||||
|
|
Loading…
Reference in New Issue