Skip to content

Commit

Permalink
ssl: switch to using memory BIOs
Browse files Browse the repository at this point in the history
This patch includes a backport of the upstream Memory BIO support.
  • Loading branch information
geertj committed Oct 5, 2014
1 parent 5fa8180 commit f354b11
Show file tree
Hide file tree
Showing 13 changed files with 833 additions and 568 deletions.
11 changes: 10 additions & 1 deletion gruvi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
# complete list.

from __future__ import absolute_import, print_function
del absolute_import, print_function # clean up module namespace

# Suppress warnings about 'import *' here. The submodules are designed to
# export their symbols to a global package namespace like this.
Expand All @@ -16,6 +15,12 @@
# should not use "from gruvi import *"
__all__ = []

import sys
if sys.version_info[0] == 2 and sys.version_info[1] < 7 \
or sys.version_info[0] == 3 and sys.version_info[1] < 3:
raise ImportError('Gruvi requires Python 2.7 or 3.3+')

# import all the subpackages into the "gruvi" namespace
from .errors import *
from .hub import *
from .fibers import *
Expand All @@ -34,3 +39,7 @@
from .dbus import *

from ._version import version_info
__version__ = version_info['version']

# clean up module namespace
del sys, absolute_import, print_function
Loading

0 comments on commit f354b11

Please sign in to comment.