Skip to content

Commit

Permalink
Add warning for python 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanjw committed Aug 27, 2018
1 parent d5c8429 commit f172797
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions web3/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
import pkg_resources
import sys
import warnings

if sys.version_info < (3, 5):
raise EnvironmentError("Python 3.5 or above is required")

if sys.version_info < (3, 6):
warnings.warn(
"Support for Python 3.5 will be removed in web3.py v5",
category=DeprecationWarning,
stacklevel=2)

from eth_account import Account # noqa: E402
from web3.main import Web3 # noqa: E402
from web3.providers.rpc import ( # noqa: E402
Expand Down

0 comments on commit f172797

Please sign in to comment.