Package: python3-antlr3 / 3.5.2-5

re-do-the-encoding-patch.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Re-add the encoding patch
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2018-02-28

--- python3-antlr3-3.5.2.orig/antlr3/streams.py
+++ python3-antlr3-3.5.2/antlr3/streams.py
@@ -509,7 +509,7 @@ class ANTLRFileStream(ANTLRStringStream)
 
         self._fileName = fileName
 
-        with open(fileName, 'r') as fp:
+        with open(fileName, 'r', encoding='utf8') as fp:
             super().__init__(fp.read())