mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-27 07:18:28 +01:00
dagascii: don't try to cover tty code
This commit is contained in:
+2
-2
@@ -21,13 +21,13 @@ class AsciiCanvas(object):
|
||||
self.canvas = [[' '] * cols for l in range(lines)]
|
||||
|
||||
def draw(self):
|
||||
if sys.stdout.isatty():
|
||||
if sys.stdout.isatty(): # pragma: no cover
|
||||
Screen.wrapper(self._do_draw)
|
||||
else:
|
||||
for line in self.canvas:
|
||||
print(''.join(line))
|
||||
|
||||
def _do_draw(self, screen):
|
||||
def _do_draw(self, screen): # pragma: no cover
|
||||
offset_x = 0
|
||||
offset_y = 0
|
||||
smaxrow, smaxcol = screen.dimensions
|
||||
|
||||
Reference in New Issue
Block a user