Skip to content

Commit

Permalink
Remove use of io module
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Price committed Sep 13, 2023
1 parent 947ad2e commit b93d8d1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cloudpathlib/cloudpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from collections import defaultdict
import collections.abc
from contextlib import contextmanager
import io
import os
from pathlib import ( # type: ignore
Path,
Expand Down Expand Up @@ -637,8 +636,6 @@ def write_text(
if not isinstance(data, str):
raise TypeError("data must be str, not %s" % data.__class__.__name__)

encoding = io.text_encoding(encoding)

with self.open(mode="w", encoding=encoding, errors=errors, newline=newline) as f:
return f.write(data)

Expand Down

0 comments on commit b93d8d1

Please sign in to comment.