Skip to content

Commit

Permalink
fix jsre parser open funciton
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenlujpl committed May 20, 2021
1 parent 9cd692e commit 08236d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/parserindexer/jsre_parser.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import print_function

import os
import io
import sys
import json
import warnings
Expand Down Expand Up @@ -108,7 +109,7 @@ def parse(self, text):
in_file = '%s/jsre_input.txt' % self.jsre_tmp_dir
out_file = '%s/jsre_output.txt' % self.jsre_tmp_dir

with open(in_file, 'w', encoding='utf8') as f:
with io.open(in_file, 'w', encoding='utf8') as f:
for r in records:
f.write(r)

Expand Down

0 comments on commit 08236d2

Please sign in to comment.