Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit dd7b69b

Browse files
committed
Lint cleanup on __init__.py.
1 parent 7c76d15 commit dd7b69b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

hyper/__init__.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
A module for providing an abstraction layer over the differences between
77
HTTP/1.1 and HTTP/2.
88
"""
9-
__version__ = '0.5.0'
9+
import logging
1010

1111
from .common.connection import HTTPConnection
1212
from .http20.connection import HTTP20Connection
@@ -16,8 +16,10 @@
1616

1717
# Throw import errors on Python <2.7 and 3.0-3.2.
1818
import sys as _sys
19-
if _sys.version_info < (2,7) or (3,0) <= _sys.version_info < (3,3):
20-
raise ImportError("hyper only supports Python 2.7 and Python 3.3 or higher.")
19+
if _sys.version_info < (2, 7) or (3, 0) <= _sys.version_info < (3, 3):
20+
raise ImportError(
21+
"hyper only supports Python 2.7 and Python 3.3 or higher."
22+
)
2123

2224
__all__ = [
2325
HTTPConnection,
@@ -29,5 +31,6 @@
2931
]
3032

3133
# Set default logging handler.
32-
import logging
3334
logging.getLogger(__name__).addHandler(logging.NullHandler())
35+
36+
__version__ = '0.5.0'

0 commit comments

Comments
 (0)