bpo-36589: Fix the error handling in curses.update_lines_cols(). (GH-12766)

Return None instead of 1.
3 files changed