DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
mdipierro opened this issue · comments
DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
Will fix asap
test, please
pip install ombott==2.0rc2
Some improvements/caveats:
earlier workflow:
- whole request body is saved to a tmp-file
- then file-fields are read from body-tmp-file and saved to separate tmp-files
now:
- request body is parsed while saving to a tmp-file to make a markup
- file-fields
file
-prop isBytesIOProxy
, i.e. file-like object which is proxied to some part of the request body-tmp-file
Hello, Val !
Please, if possible, add a small change to the line 73 file ombott.py
- _stderr(f"Listening on http{'s' if kwargs.get('certfile', None) else ''}://{server.host}:{server.port}/\n")
+ if not server.host.startswith('unix:/') :
+ _stderr(f"Listening on http{'s' if kwargs.get('certfile', None) else ''}://{server.host}:{server.port}/\n")