Skip to content

Commit 4d9e8f2

Browse files
committed
Fix SSL for Python 3.3
1 parent ba80d91 commit 4d9e8f2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

neo4j/v1/session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class which can be used to obtain `Driver` instances that are used for
2929
from __future__ import division
3030

3131
from collections import deque, namedtuple
32-
from ssl import SSLContext, PROTOCOL_SSLv23, OP_NO_SSLv2, CERT_REQUIRED, Purpose
32+
from ssl import SSLContext, PROTOCOL_SSLv23, OP_NO_SSLv2, CERT_REQUIRED
3333

3434
from .compat import integer, string, urlparse
3535
from .connection import connect, Response, RUN, PULL_ALL
@@ -106,7 +106,7 @@ def __init__(self, url, **config):
106106
ssl_context.options |= OP_NO_SSLv2
107107
if trust >= TRUST_SIGNED_CERTIFICATES:
108108
ssl_context.verify_mode = CERT_REQUIRED
109-
ssl_context.load_default_certs(Purpose.SERVER_AUTH)
109+
ssl_context.set_default_verify_paths()
110110
self.ssl_context = ssl_context
111111
else:
112112
self.ssl_context = None

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def read(fname):
4848
"Topic :: Database",
4949
"Topic :: Software Development",
5050
"Programming Language :: Python :: 2.7",
51+
"Programming Language :: Python :: 3.3",
5152
"Programming Language :: Python :: 3.4",
5253
],
5354
packages=["neo4j", "neo4j.v1"])

0 commit comments

Comments
 (0)