Skip to content

Commit 1d2359b

Browse files
committed
F1
1 parent 6e7b21c commit 1d2359b

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/xtgeo/io/tsurf/_tsurf_reader.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from io import BytesIO, StringIO
2-
import pathlib
31
import warnings
42
from dataclasses import dataclass
53
from typing import Any, Generator, TextIO
@@ -795,16 +793,6 @@ def to_file(
795793
wrapped_file = FileWrapper(file)
796794
wrapped_file.check_folder(raiseerror=OSError)
797795

798-
encoding = "utf-8"
799-
800-
# TODO: remove commented code below
801-
# Looked in polygons.py, only need to open the file and write to it
802-
# But this is when wrapped_file is a str
803-
# with open(wrapped_file, "w") as fout:
804-
# for col in use_attributes:
805-
# if col in df.columns:
806-
# fout.write(transl[xyz._attrs[col]] + " " + col + "\n")
807-
808796
lines = []
809797

810798
# TSurf signature line

0 commit comments

Comments
 (0)