Skip to content

Commit

Permalink
Stop using codecs.open (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
aplaice authored Aug 24, 2024
1 parent ab4c47b commit 16bd32b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions brain_brew/representation/generic/html_file.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import codecs
from dataclasses import dataclass

from brain_brew.representation.generic.source_file import SourceFile
Expand All @@ -19,7 +18,7 @@ def from_file_loc(cls, file_loc) -> 'HTMLFile':
return cls(file_loc)

def read_file(self):
r = codecs.open(self.file_location, 'r', encoding=_encoding)
r = open(self.file_location, 'r', encoding=_encoding)
self._data = r.read()

def get_data(self, deep_copy=False) -> str:
Expand Down

0 comments on commit 16bd32b

Please sign in to comment.