瀏覽代碼

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

Signed-off-by: Daniel Nephin <[email protected]>
Daniel Nephin 11 年之前
父節點
當前提交
8157f0887d
共有 1 個文件被更改,包括 1 次插入1 次删除
  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):