Skip to content

Commit

Permalink
Address review comment, thanks @gaborbernat
Browse files Browse the repository at this point in the history
  • Loading branch information
sk1p committed Jul 6, 2023
1 parent cec89f8 commit a54a104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyproject_api/_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def read_line(fd=0):
content = bytearray()
while True:
char = os.read(fd, 1)
if len(char) == 0:
if not char:
if not content:
raise EOFError("EOF without reading anything") # we didn't get a line at all, let the caller know
break
Expand Down

0 comments on commit a54a104

Please sign in to comment.