Skip to content

Commit

Permalink
SSL comes with Python 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Dusty Phillips committed Jan 24, 2010
1 parent d478c7e commit 2f96c9b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions psyclone/httpserver.py
Expand Up @@ -27,10 +27,7 @@
import time
import urllib.parse

try:
import ssl # Python 2.6+
except ImportError:
ssl = None
import ssl


class HTTPServer:
Expand Down Expand Up @@ -197,7 +194,6 @@ def _handle_events(self, fd, events):
return
raise
if self.ssl_options is not None:
assert ssl, "Python 2.6+ and OpenSSL required for SSL"
connection = ssl.wrap_socket(
connection, server_side=True, **self.ssl_options)
try:
Expand Down

0 comments on commit 2f96c9b

Please sign in to comment.