Skip to content

Commit edf82b6

Browse files
author
Justus Pendleton
committed
need to pass arguments to wrapper readline for SSL servers
1 parent ffcd026 commit edf82b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

roundup/scripts/roundup_server.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
"""Command-line script that runs a server over roundup.cgi.client.
1919
20-
$Id: roundup_server.py,v 1.92 2007-09-07 20:27:46 jpend Exp $
20+
$Id: roundup_server.py,v 1.93 2007-09-09 16:03:13 jpend Exp $
2121
"""
2222
__docformat__ = 'restructuredtext'
2323

@@ -120,12 +120,12 @@ class RetryingFile(object):
120120
def __init__(self, fileobj):
121121
self.__fileobj = fileobj
122122

123-
def readline(self):
123+
def readline(self, *args):
124124
""" SSL.Connection can return WantRead """
125125
line = None
126126
while not line:
127127
try:
128-
line = self.__fileobj.readline()
128+
line = self.__fileobj.readline(*args)
129129
except SSL.WantReadError:
130130
line = None
131131
return line

0 commit comments

Comments
 (0)