The fix itself is the same as for Python 2.5 – only the line numbers have changed.
Open the file /usr/lib/python2.7/locale.py and find the line containing en_gb (line 921) and add these lines (this works for Danish locales):
'[email protected]': 'en_DK.ISO8859-15',
In order to avoid this change getting overwritten by packages updates, I use dpkg-divert:
$ sudo cp /usr/lib/python2.7/locale.py.real /usr/lib/python2.7/locale.py
If you wish to remove the diversion (if the package is fixed to support you locale at some point) simply run