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

Commit 32b87e7

Browse files
committed
Py3.3 or higher for now.
1 parent a7d0da2 commit 32b87e7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hyper/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@
88
"""
99
from .http20.connection import HTTP20Connection
1010
from .http20.response import HTTP20Response
11+
12+
# Throw import errors on Python 2.
13+
import sys as _sys
14+
if _sys.version_info[0] < 3 or _sys.version_info[1] < 3:
15+
raise ImportError("hyper only supports Python 3.3 or higher.")

0 commit comments

Comments
 (0)