Skip to content

Commit

Permalink
Fix EncodingWarning.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jul 14, 2024
1 parent 13ebe41 commit 8c8b50c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion jaraco/text/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,5 +634,5 @@ def lines_from(input):
>>> next(lines)
'Curabitur pretium...'
"""
with input.open() as stream:
with input.open(encoding='utf-8') as stream:
yield from stream
1 change: 1 addition & 0 deletions newsfragments/+5f1ab118.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix EncodingWarning.

0 comments on commit 8c8b50c

Please sign in to comment.