После того, как я обновил Ubuntu, мой Python был изменен на 2.6.6, и мой app.py перестал работать при вызове
sys.stdout.write(curses.tigetstr('civis'))
и пишет:
Traceback (most recent call last):
File "app.py", line 60, in <module>
sys.stdout.write(curses.tigetstr('civis'))
TypeError: argument 1 must be string or read-only character buffer, not None
Должен ли я изменить свой код для более новой версии Python?