mirror of https://github.com/docker/docs.git
Fix the return value of get_tty_width() it should return an int.
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
parent
6dab8c1b89
commit
8157f0887d
|
@ -9,7 +9,7 @@ def get_tty_width():
|
||||||
if len(tty_size) != 2:
|
if len(tty_size) != 2:
|
||||||
return 80
|
return 80
|
||||||
_, width = tty_size
|
_, width = tty_size
|
||||||
return width
|
return int(width)
|
||||||
|
|
||||||
|
|
||||||
class Formatter(object):
|
class Formatter(object):
|
||||||
|
|
Loading…
Reference in New Issue