Compare commits

..

No commits in common. "8ccbd5d7a4b10e1d9225222baa4df7d93fd89833" and "3475f5c7cc78f70278fdc020c1dec140dedf7d45" have entirely different histories.

4 changed files with 5 additions and 46 deletions

BIN
Paste-3.5.0.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,25 +0,0 @@
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

View File

@ -1,17 +1,16 @@
Name: python-paste
Version: 3.7.1
Release: 2
Version: 3.5.0
Release: 1
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)
License: MIT and ZPLv2.0 and Python and (AFL or MIT) and (MIT or ASL 2.0)
URL: https://pythonpaste.readthedocs.io/en/latest/
Source0: https://files.pythonhosted.org/packages/source/P/Paste/Paste-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-devel python3-nose
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
@ -23,7 +22,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
@ -65,21 +64,6 @@ 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
* Mon Nov 21 2022 lvfei <lvfei@kylinos.cn> - 3.5.2-1
- update to 3.5.2
* Thu Jul 28 2022 Chenyx <chenyixiong3@huawei.com> - 3.5.0-3
- License compliance rectification
* Fri May 6 2022 wuchaochao <cyanrose@yeah.net> - 3.5.0-2
- remove BuildRequires python-nose
* Wed Jan 27 2021 zhanzhimin <zhanzhimin@huawei.com> - 3.5.0-1
- update to 3.5.0