Skip to content
Snippets Groups Projects
Commit 059d4c7f authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Simplifying setup.py.

parent 7f905180
Branches
No related tags found
No related merge requests found
...@@ -439,7 +439,7 @@ class ShellInterface(object): ...@@ -439,7 +439,7 @@ class ShellInterface(object):
try: try:
height, width = os.popen('stty size', 'r').read().split() height, width = os.popen('stty size', 'r').read().split()
width = int(width) width = int(width)
leftright = ((width - len(title)-2) // 2 leftright = (width - len(title)-2) // 2
except ValueError: except ValueError:
leftright = 40 leftright = 40
return trim*leftright + " " + title + " " + trim*leftright return trim*leftright + " " + title + " " + trim*leftright
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment