Skip to content

Commit 7e604a4

Browse files
committed
fix: linting previous commit
1 parent 8cf02e1 commit 7e604a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

causal_testing/specification/causal_dag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class CausalDAG(nx.DiGraph):
133133
def __init__(self, dot_path: str = None, **attr):
134134
super().__init__(**attr)
135135
if dot_path:
136-
with open(dot_path, 'r') as file:
136+
with open(dot_path, 'r', encoding='utf-8') as file:
137137
dot_content = file.read().replace('\n', '')
138138
pydot_graph = pydot.graph_from_dot_data(dot_content)
139139
self.graph = nx.DiGraph(nx.drawing.nx_pydot.from_pydot(pydot_graph[0]))

0 commit comments

Comments
 (0)