Skip to content

Commit

Permalink
Got rid of a BytesWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
regebro committed Aug 15, 2018
1 parent 0e43bbe commit 8048e72
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Changes
- Now verifies that the config files actually contain something before
reading them. (Zackary Welch, regebro)

- Got rid of a BytesWarning (Mickaël Schoentgen)


1.5.1 (2017-12-01)
------------------
Expand Down
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ Contributors
* Victor Torres
* Jean Jordaan
* Zackary Welch
* Mickaël Schoentgen

(Sorry if I forgot someone)

Expand Down
2 changes: 1 addition & 1 deletion tzlocal/unix.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _get_localzone(_root='/'):

# Issue #3 was that /etc/timezone was a zoneinfo file.
# That's a misconfiguration, but we need to handle it gracefully:
if data[:5] == 'TZif2':
if data[:5] == b'TZif2':
continue

etctz = data.strip().decode()
Expand Down

0 comments on commit 8048e72

Please sign in to comment.