Skip to content

Commit

Permalink
Add a comment
Browse files Browse the repository at this point in the history
Mention the range of Python versions that need the workaround so we can remove it once Python 3.10 goes EOL.

Co-authored-by: Michael Howitz <icemac@gmx.net>
  • Loading branch information
mgedmin and icemac authored Sep 25, 2024
1 parent 31238c6 commit 6b9710a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zope/publisher/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ def __init__(self, aFieldStorage):

if 'seekable' not in d and isinstance(
file, tempfile.SpooledTemporaryFile
):
): # Python 3.7 to 3.10
# NB: can't assign file._file.seekable, file._file might roll over
d['seekable'] = lambda: file._file.seekable()

Expand Down

0 comments on commit 6b9710a

Please sign in to comment.