Skip to content

Commit

Permalink
Actually propogated encoding through.
Browse files Browse the repository at this point in the history
  • Loading branch information
MicahGale committed Jan 17, 2024
1 parent 15cfb10 commit 0dc5656
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion montepy/input_parser/input_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def open(self, mode, encoding="ascii"):
:type encoding: str
:returns: self
"""
self._fh = open(self.path, mode, encoding="ascii")
self._fh = open(self.path, mode, encoding=encoding)
return self

def __enter__(self):
Expand Down
2 changes: 1 addition & 1 deletion montepy/mcnp_problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def parse_input(self, check_input=False, encoding="ascii"):
try:
for i, input in enumerate(
input_syntax_reader.read_input_syntax(
self._input_file, self.mcnp_version
self._input_file, self.mcnp_version, encoding=encoding
)
):
self._original_inputs.append(input)
Expand Down

0 comments on commit 0dc5656

Please sign in to comment.