| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent dced9be commit 6e3828f
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -49,6 +49,7 @@ | |||
| 49 | 49 | # for py2/py3 compatibility | |
| 50 | 50 | from __future__ import print_function | |
| 51 | 51 | ||
| 52 | + import io | ||
| 52 | 53 | import re | |
| 53 | 54 | import sys | |
| 54 | 55 | ||
@@ -380,7 +381,7 @@ def load_objects(): | |||
| 380 | 381 | ||
| 381 | 382 | ||
| 382 | 383 | def load_objects_from_file(objfilename, checktypes): | |
| 383 | - objfile = open(objfilename, 'r'); | ||
| 384 | + objfile = io.open(objfilename, 'r', encoding='utf-8'); | ||
| 384 | 385 | in_insttype = False; | |
| 385 | 386 | ||
| 386 | 387 | typestr = ''; | |
@@ -575,7 +576,7 @@ def load_fields(): | |||
| 575 | 576 | ||
| 576 | 577 | ||
| 577 | 578 | def load_fields_from_file(filename): | |
| 578 | - inlfile = open(filename, 'r'); | ||
| 579 | + inlfile = io.open(filename, 'r', encoding='utf-8'); | ||
| 579 | 580 | ||
| 580 | 581 | # | |
| 581 | 582 | # Each class's fields and the corresponding offsets are described in the | |
| Back | FazBrowse Home | New Git URL |
0 commit comments