Skip to content

Commit 9d20e98

Browse files
committed
Replace StringIO with BytesIO for buffering of SSL response.
1 parent a637be8 commit 9d20e98

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

.pydevproject

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
22
<?eclipse-pydev version="1.0"?><pydev_project>
3-
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">ndg-https-client-py2.7</pydev_property>
4-
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.7</pydev_property>
3+
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">ndg-https-client-py3.4</pydev_property>
4+
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 3.0</pydev_property>
55
<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
66
<path>/ndg_httpsclient</path>
77
</pydev_pathproperty>

ndg/httpsclient/ssl_socket.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,7 @@
1212
from datetime import datetime
1313
import logging
1414
import socket
15-
import sys
16-
17-
if sys.version_info[0] > 2:
18-
# Make use of byte buffer for Python 3
19-
from io import BytesIO as BufferIO_
20-
else:
21-
from cStringIO import StringIO as BufferIO_
15+
from io import BytesIO as BufferIO_
2216

2317
from OpenSSL import SSL
2418

0 commit comments

Comments
 (0)