Skip to content

Commit

Permalink
Apply review suggestion to replace split
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Howitz <mh@gocept.com>
  • Loading branch information
d-maurer and Michael Howitz committed Oct 13, 2023
1 parent 54b8c75 commit 06da166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ZPublisher/HTTPRequest.py
Expand Up @@ -1505,7 +1505,7 @@ class LimitedFileReader:
"""File wrapper emulating EOF."""

# attributes to be delegated to the file
DELEGATE = set("close closed fileno mode name".split())
DELEGATE = set(["close", "closed", "fileno", "mode", "name"])

def __init__(self, fp, limit):
"""emulate EOF after *limit* bytes have been read.
Expand Down

0 comments on commit 06da166

Please sign in to comment.