Skip to content

Commit

Permalink
remove cgi-import
Browse files Browse the repository at this point in the history
  • Loading branch information
valq7711 committed Nov 1, 2024
1 parent cc0ad99 commit f44b85f
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions ombott/request_pkg/props_mixin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import base64
import cgi
from http.cookies import SimpleCookie
from urllib.parse import (
quote as urlquote,
Expand All @@ -17,20 +16,6 @@
)


def cgi_monkey_patch():
"""Fix bug cgi.FieldStorage context manager bug https://github.com/python/cpython/pull/14815
"""
def patch_exit(self, *exc):
if self.file is not None:
self.file.close()
cgi.FieldStorage.__exit__ = patch_exit


cgi_monkey_patch()
del cgi_monkey_patch


class PropsMixin:

@cache_in('environ[ ombott.app ]', read_only=True)
Expand Down

0 comments on commit f44b85f

Please sign in to comment.