Skip to content

Commit d2f913b

Browse files
committed
0.16.3
1 parent 4437d7a commit d2f913b

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "reloader.py"
3-
version = "0.16.2"
3+
version = "0.16.3"
44
description = "A simple script reloader"
55
license = "MIT"
66
authors = [{ name = "EcmaXp", email = "[email protected]" }]

reloader.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
from watchdog.utils.event_debouncer import EventDebouncer
3535

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

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

309310
return lines
310311

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)