Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 036fc7d commit c0ec448Copy full SHA for c0ec448
1 file changed
Lib/lib2to3/pgen2/pgen.py
@@ -12,7 +12,7 @@ class ParserGenerator(object):
12
def __init__(self, filename, stream=None):
13
close_stream = None
14
if stream is None:
15
- stream = open(filename)
+ stream = open(filename, encoding="utf-8")
16
close_stream = stream.close
17
self.filename = filename
18
self.stream = stream
0 commit comments