Skip to content

Commit dd83542

Browse files
committed
Preparing 0.4.0 release. Changed ssl_socket to use BytesIO for Python 2
and 3.
1 parent 9d20e98 commit dd83542

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

INSTALL

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Installation notes
2+
==================
3+
4+
For install on Mac Yosemite, special header file include paths are needed for
5+
PyOpenSSL dependency source builds. Install XCode and add explicit include path
6+
for ffi package and generic include:
7+
8+
export CPATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/ffi:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/

ndg/httpsclient/ssl_socket.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from datetime import datetime
1313
import logging
1414
import socket
15-
from io import BytesIO as BufferIO_
15+
from io import BytesIO
1616

1717
from OpenSSL import SSL
1818

@@ -234,7 +234,7 @@ def makefile(self, *args):
234234
_buf_size = self.buf_size
235235

236236
i=0
237-
stream = BufferIO_()
237+
stream = BytesIO()
238238
startTime = datetime.utcnow()
239239
try:
240240
dat = self.__ssl_conn.recv(_buf_size)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102

103103
setup(
104104
name='ndg_httpsclient',
105-
version="0.3.3",
105+
version="0.4.0",
106106
description='Provides enhanced HTTPS support for httplib and urllib2 using '
107107
'PyOpenSSL',
108108
author='Richard Wilkinson and Philip Kershaw',

0 commit comments

Comments
 (0)