summaryrefslogtreecommitdiff
path: root/dev-python/sphinxcontrib-googleanalytics/files/setup.py.utf-8.patch
blob: b3b9f58d1b2d17d141efc50a2baa026309ec9b48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
https://bugs.gentoo.org/show_bug.cgi?id=429914
--- setup.py
+++ setup.py
@@ -1,10 +1,11 @@
 # -*- coding: utf-8 -*-
 
+import codecs
 import os
 from setuptools import setup, find_packages
 
 HERE = os.path.dirname(os.path.abspath(__file__))
-long_desc = open(os.path.join(HERE, 'README')).read()
+long_desc = codecs.open(os.path.join(HERE, 'README'), encoding='utf-8').read()
 
 requires = ['Sphinx>=0.6']