Commit c5d20b9e authored by Jason Madden's avatar Jason Madden

Make the import of close conditional, for now.

parent 9eaa8530
...@@ -755,8 +755,8 @@ else: # pragma: no cover ...@@ -755,8 +755,8 @@ else: # pragma: no cover
__implements__.remove('socketpair') __implements__.remove('socketpair')
if sys.version_info[:2] >= (3, 7): if hasattr(__socket__, 'close'): # Python 3.7b1+
close = __socket__.close close = __socket__.close # pylint:disable=no-member
__imports__ += ['close'] __imports__ += ['close']
__all__ = __implements__ + __extensions__ + __imports__ __all__ = __implements__ + __extensions__ + __imports__
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment