Skip to content

Commit

Permalink
0.16.3
Browse files Browse the repository at this point in the history
  • Loading branch information
EcmaXp committed Dec 22, 2024
1 parent 4437d7a commit d2f913b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "reloader.py"
version = "0.16.2"
version = "0.16.3"
description = "A simple script reloader"
license = "MIT"
authors = [{ name = "EcmaXp", email = "ecmaxp@ecmaxp.kr" }]
Expand Down
5 changes: 3 additions & 2 deletions reloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from watchdog.utils.event_debouncer import EventDebouncer

__author__ = "EcmaXp"
__version__ = "0.16.1"
__version__ = "0.16.3"
__license__ = "MIT"
__url__ = "https://pypi.org/project/reloader.py/"
__all__ = [
Expand Down Expand Up @@ -304,7 +304,8 @@ def load_lines(self) -> list[str]:
lines = inspect.getsourcelines(self.module)[0][:]

if lines is None:
lines = self.path.read_text().splitlines(keepends=True)
content = self.path.read_text(encoding="utf-8", errors="replace")
lines = content.splitlines(keepends=True)

return lines

Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d2f913b

Please sign in to comment.