fix certmaster/func connections out for fedora 14/python 2.7
authorFelix Kaechele <felix at fetzig org>
Fri, 25 Feb 2011 20:30:09 +0000 (15:30 -0500)
committerSeth Vidal <skvidal@fedoraproject.org>
Fri, 25 Feb 2011 20:30:09 +0000 (15:30 -0500)
certmaster/SSLConnection.py

index 4d4c162..3e72d5e 100644 (file)
@@ -62,7 +62,7 @@ class SSLConnection:
         c, a = self.__dict__["conn"].accept()
         return (SSLConnection(c), a)
 
-    def makefile(self, mode, bufsize):
+    def makefile(self, mode='r', bufsize=-1):
         """
         We need to use socket._fileobject Because SSL.Connection
         doesn't have a 'dup'. Not exactly sure WHY this is, but