Skip to content

Commit

Permalink
Ignored the UP015 rule
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Oct 10, 2023
1 parent 2f6249e commit 965fc54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ select = [
"RUF100", # unused noqa (yesqa)
"UP", # pyupgrade
]
ignore = ["UP015"]

[tool.zest.releaser]
create-wheel = true
Expand Down
2 changes: 1 addition & 1 deletion tzlocal/unix.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def _get_localzone_name(_root="/"):
for filename in ("etc/sysconfig/clock", "etc/conf.d/clock"):
tzpath = os.path.join(_root, filename)
try:
with open(tzpath) as tzfile:
with open(tzpath, "rt") as tzfile:
data = tzfile.readlines()
log.debug(f"{tzpath} found, contents:\n {data}")

Expand Down

0 comments on commit 965fc54

Please sign in to comment.