Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Jython 2.7's ssl module is incomplete.

  • Loading branch information...
commit 6473e07ea748f6798e78046cdef26d599c2f6b35 1 parent c0673df
@behackett behackett authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 pymongo/
6 pymongo/
@@ -14,6 +14,7 @@
"""Functions and classes common to multiple pymongo modules."""
+import sys
import warnings
from pymongo import read_preferences
@@ -28,6 +29,11 @@
HAS_SSL = False
+# Jython 2.7 includes an incomplete ssl module. See PYTHON-498.
+if sys.platform.startswith('java'):
+ HAS_SSL = False
def raise_config_error(key, dummy):
"""Raise ConfigurationError with the given key name."""
raise ConfigurationError("Unknown option %s" % (key,))

0 comments on commit 6473e07

Please sign in to comment.
Something went wrong with that request. Please try again.