File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 99
1010from __future__ import annotations
1111
12- import codecs
1312import os
1413import shutil
1514import subprocess
@@ -103,7 +102,7 @@ def generate(
103102 os .close (pdot )
104103 else :
105104 dot_sourcepath = outputfile
106- with codecs . open (dot_sourcepath , "w" , encoding = "utf8" ) as file :
105+ with open (dot_sourcepath , "w" , encoding = "utf8" ) as file :
107106 file .write (self .source )
108107 if target not in graphviz_extensions :
109108 if shutil .which (self .renderer ) is None :
Original file line number Diff line number Diff line change 66
77from __future__ import annotations
88
9- import codecs
109import os
1110from collections .abc import Iterator , Sequence
1211from difflib import unified_diff
@@ -65,7 +64,7 @@ def __init__(self) -> None:
6564
6665def _file_lines (path : str ) -> list [str ]:
6766 # we don't care about the actual encoding, but python3 forces us to pick one
68- with codecs . open (path , encoding = "latin1" ) as stream :
67+ with open (path , encoding = "latin1" ) as stream :
6968 lines = [
7069 line .strip ()
7170 for line in stream .readlines ()
You can’t perform that action at this time.
0 commit comments