File: fix-FTBFS.patch

package info (click to toggle)
python-socketpool 0.5.3-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 196 kB
  • ctags: 145
  • sloc: python: 629; makefile: 4
file content (20 lines) | stat: -rw-r--r-- 648 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Fix a FTBFS
 setup.py open() an unicode file as ascii, this patch modifies setup.py
 to open the file as binary then decodes it from utf-8
Origin: Upstream
Author: Ralph Bean rbean@redhat.com
Last-Update: 2016-04-06

--- a/setup.py
+++ b/setup.py
@@ -22,8 +22,8 @@ CLASSIFIERS = [
 
 
 # read long description
-with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
-    long_description = f.read()
+with open(os.path.join(os.path.dirname(__file__), 'README.rst'), 'rb') as f:
+    long_description = f.read().decode('utf-8')
 
 DATA_FILES = [
         ('socketpool', ["LICENSE", "MANIFEST.in", "NOTICE", "README.rst",