Skip to content

Commit

Permalink
Update helpers.py
Browse files Browse the repository at this point in the history
Allow encoding in UTF-8
  • Loading branch information
Sparsa authored Aug 12, 2020
1 parent b2ef9bb commit 72910ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bup/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def log(s):
"""Print a log message to stderr."""
global _last_prog
sys.stdout.flush()
_hard_write(sys.stderr.fileno(), s if isinstance(s, bytes) else s.encode())
_hard_write(sys.stderr.fileno(), s if isinstance(s, bytes) else s.encode(encoding='utf-8'))
_last_prog = 0


Expand Down

0 comments on commit 72910ce

Please sign in to comment.