Skip to content

Commit

Permalink
Merge pull request #13 from antlr/Encoding-bug
Browse files Browse the repository at this point in the history
Fixed encoding bug
  • Loading branch information
ericvergnaud committed Dec 18, 2014
2 parents e5dc5b6 + 3b2e529 commit 087b790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/antlr4/FileStream.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

class FileStream(InputStream):

def __init__(self, fileName: str, encoding=None):
def __init__(self, fileName: str, encoding='ascii'):
self.fileName = fileName
# read binary to avoid line ending conversion
with open(fileName, 'rb') as file:
Expand Down

0 comments on commit 087b790

Please sign in to comment.