Pārlūkot izejas kodu

Fix the return value of get_tty_width() it should return an int.

Signed-off-by: Daniel Nephin <[email protected]>
Daniel Nephin 11 gadi atpakaļ
vecāks
revīzija
8157f0887d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      fig/cli/formatter.py

+ 1 - 1
fig/cli/formatter.py

@@ -9,7 +9,7 @@ def get_tty_width():
     if len(tty_size) != 2:
         return 80
     _, width = tty_size
-    return width
+    return int(width)
 
 
 class Formatter(object):