Mercurial > p > roundup > code
changeset 8555:98fb176224fc
bug(perf): move import tempfile to top of file
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 06 Apr 2026 01:27:39 -0400 |
| parents | 92aecf6c5c09 |
| children | dd0445649244 |
| files | roundup/cgi/client.py |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/roundup/cgi/client.py Sun Apr 05 17:49:21 2026 -0400 +++ b/roundup/cgi/client.py Mon Apr 06 01:27:39 2026 -0400 @@ -14,6 +14,7 @@ import socket import stat import sys +import tempfile import time from email.mime.multipart import MIMEMultipart from traceback import format_exc @@ -279,7 +280,6 @@ ''' def make_file(self, mode=None): ''' work around https://bugs.python.org/issue27777 ''' - import tempfile if self.length >= 0: return tempfile.TemporaryFile("wb+") return super(BinaryFieldStorage, self).make_file()
