Skip to content

Commit

Permalink
improved performance
Browse files Browse the repository at this point in the history
  • Loading branch information
mhrvol committed Mar 6, 2025
1 parent a924eec commit 5fbdfad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python/dxpy/bindings/dxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,8 @@ def __iter__(self):
break
_buffer += more
parts = _buffer.split("\n")
for line in parts[:-1]:
yield line
for i in range(len(parts) - 1):
yield parts[i]
# The final piece may be incomplete, so keep it in the buffer
_buffer = parts[-1]
if _buffer:
Expand Down

0 comments on commit 5fbdfad

Please sign in to comment.