-
Committer:
Steve Beattie
-
Date:
2018-02-23 10:25:22 UTC
-
Revision ID:
sbeattie@ubuntu.com-20180223102522-ieu4fe4w796hyz4q
usn.py: add gross hack to not encode template output on old python
When LANG=C is set, modern python 2.7+genshi will fail if the output is
not encoded as utf-8. On old python, it fails if it is encoded
regardless of LANG setting. So add a gross hack that skips encoding if
the python version is older than 2.7.6 (trusty's python).