FreeBSD Bugzilla – Attachment 188998 Details for
Bug 224332
Patch www/py-flup to support py3k for flavours
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
extra patch for flup6
patch-flup_server_fcgi__base.py (text/plain), 1.15 KB, created by
Shane
on 2017-12-20 16:00:41 UTC
(
hide
)
Description:
extra patch for flup6
Filename:
MIME Type:
Creator:
Shane
Created:
2017-12-20 16:00:41 UTC
Size:
1.15 KB
patch
obsolete
>--- flup/server/fcgi_base.py.orig 2015-08-01 02:01:48 UTC >+++ flup/server/fcgi_base.py >@@ -49,9 +49,11 @@ thread_available = True > if sys.hexversion >= 0x03000000: > text_type = str > force_str = lambda s: s.decode('latin-1') >+ py3k = True > else: > text_type = unicode > force_str = lambda s: s >+ py3k = False > > # Apparently 2.3 doesn't define SHUT_WR? Assume it is 1 in this case. > if not hasattr(socket, 'SHUT_WR'): >@@ -601,9 +603,14 @@ class CGIRequest(Request): > > self.server = server > self.params = dict(os.environ) >- self.stdin = sys.stdin.buffer >- self.stdout = StdoutWrapper(sys.stdout.buffer) # Oh, the humanity! >- self.stderr = sys.stderr.buffer >+ if py3k: >+ self.stdin = sys.stdin.buffer >+ self.stdout = StdoutWrapper(sys.stdout.buffer) # Oh, the humanity! >+ self.stderr = sys.stderr.buffer >+ else: >+ self.stdin = sys.stdin >+ self.stdout = StdoutWrapper(sys.stdout) # Oh, the humanity! >+ self.stderr = sys.stderr > self.data = BytesIO() > > def _end(self, appStatus=0, protocolStatus=FCGI_REQUEST_COMPLETE):
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 224332
:
188818
|
188873
|
188966
|
188997
| 188998