For python2.7, this was fixed in https://github.com/python/cpython/commit/a5c9112300ecd492ed6cc9759dc8028766401f61 which landed in 2.7.15, so has been fixed in bionic-updates and newer.
For python2.7, this was fixed in https:/ /github. com/python/ cpython/ commit/ a5c9112300ecd49 2ed6cc9759dc802 8766401f61 which landed in 2.7.15, so has been fixed in bionic-updates and newer.