Bugfix, fixed formatting on python versions above 3.4.0.
This commit is contained in:
@@ -113,11 +113,15 @@ class SubmissionPage(BasePage):
|
|||||||
attr = Color.get_level(data['level'])
|
attr = Color.get_level(data['level'])
|
||||||
for y in range(n_rows):
|
for y in range(n_rows):
|
||||||
|
|
||||||
|
x = 0
|
||||||
|
|
||||||
# Nobody pays attention to curses ;(
|
# Nobody pays attention to curses ;(
|
||||||
# http://bugs.python.org/issue21088
|
# http://bugs.python.org/issue21088
|
||||||
x = 0
|
if (sys.version_info.major,
|
||||||
if (sys.version_info.major, sys.version_info.minor) == (3, 4):
|
sys.version_info.minor,
|
||||||
|
sys.version_info.micro) == (3, 4, 0):
|
||||||
x, y = y, x
|
x, y = y, x
|
||||||
|
|
||||||
win.addch(y, x, curses.ACS_VLINE, attr)
|
win.addch(y, x, curses.ACS_VLINE, attr)
|
||||||
|
|
||||||
return attr | curses.ACS_VLINE
|
return attr | curses.ACS_VLINE
|
||||||
|
|||||||
Reference in New Issue
Block a user