python3 socke use SocketIO
This commit is contained in:
parent
11f8d7ca39
commit
a5856c37db
25
backport-python3-socke-use-SocketIO.patch
Normal file
25
backport-python3-socke-use-SocketIO.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From commit ID:449855bda4c78f3e594f54736fc781fab87c1910 Mon Sep 17 00:00:00 2001
|
||||
From:commit ref <https://github.com/pasteorg/paste/pull/68> commiter:huiwen
|
||||
Date: Wed, 8 May 2024 19:48:50 +0800
|
||||
Subject: [PATCH] fix of broken Python 2 code
|
||||
|
||||
---
|
||||
paste/httpserver.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/paste/httpserver.py b/paste/httpserver.py
|
||||
index 8023bfd..b040ad4 100755
|
||||
--- a/paste/httpserver.py
|
||||
+++ b/paste/httpserver.py
|
||||
@@ -353,7 +353,7 @@ else:
|
||||
def __init__(self, conn):
|
||||
self.__conn = conn
|
||||
def makefile(self, mode, bufsize):
|
||||
- return socket._fileobject(self.__conn, mode, bufsize)
|
||||
+ return socket.SocketIO(self.__conn, mode)
|
||||
def __getattr__(self, attrib):
|
||||
return getattr(self.__conn, attrib)
|
||||
|
||||
--
|
||||
2.43.0
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
Name: python-paste
|
||||
Version: 3.7.1
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Tools for using a Web Server Gateway Interface stack
|
||||
|
||||
License: MIT and ZPLv2.0 and Python and (AFL-2.1 or MIT) and (MIT or ASL 2.0)
|
||||
@ -11,6 +11,7 @@ Source0: https://files.pythonhosted.org/packages/source/P/Paste/Paste-%{v
|
||||
BuildArch: noarch
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-pyOpenSSL python3-setuptools python3-six python3-tempita
|
||||
Patch0001: backport-python3-socke-use-SocketIO.patch
|
||||
|
||||
%description
|
||||
Paste provides several pieces of "middleware" (or filters) that can be nested
|
||||
@ -22,7 +23,7 @@ Summary: Tools for using a Web Server Gateway Interface stack
|
||||
|
||||
%{?python_provide:%python_provide python3-paste}
|
||||
|
||||
Requires: python3-pyOpenSSL python3-setuptools
|
||||
Requires: python3-pyOpenSSL python3-setuptools
|
||||
Requires: python3-six python3-tempita
|
||||
|
||||
%description -n python3-paste
|
||||
@ -64,6 +65,9 @@ popd
|
||||
%doc docs/*
|
||||
|
||||
%changelog
|
||||
* Tue May 7 2024 tenglei <tenglei@kylinos.cn> - 3.7.1-2
|
||||
- python3 socke use SocketIO
|
||||
|
||||
* Mon Jan 15 2024 zhangpan <zhangpan103@h-partners.com> - 3.7.1-1
|
||||
- update to 3.7.1
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user