Sfoglia il codice sorgente

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

Signed-off-by: Daniel Nephin <[email protected]>
Daniel Nephin 11 anni fa
parent
commit
8157f0887d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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):