From f44b85ff236e7493074123eaac025b3c9f4d5625 Mon Sep 17 00:00:00 2001 From: valq7711 Date: Sat, 2 Nov 2024 01:08:57 +0300 Subject: [PATCH] remove cgi-import --- ombott/request_pkg/props_mixin.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/ombott/request_pkg/props_mixin.py b/ombott/request_pkg/props_mixin.py index 324bec6..cce942c 100644 --- a/ombott/request_pkg/props_mixin.py +++ b/ombott/request_pkg/props_mixin.py @@ -1,5 +1,4 @@ import base64 -import cgi from http.cookies import SimpleCookie from urllib.parse import ( quote as urlquote, @@ -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)