Skip to content

Commit eb2c116

Browse files
committed
fix unspecified-encoding in document.py
1 parent c4551af commit eb2c116

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sbol3/document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ def write(self, fpath: Union[Path, str], file_format: str = None) -> None:
472472
file_format = self._guess_format(_fpath)
473473
if file_format is None:
474474
raise ValueError('Unable to determine file format')
475-
with open(_fpath, 'w') as outfile:
475+
with open(_fpath, 'w', encoding='utf-8') as outfile:
476476
outfile.write(self.write_string(file_format))
477477

478478
def graph(self) -> rdflib.Graph:

0 commit comments

Comments
 (0)