Skip to content

Commit

Permalink
Merge pull request #1051 from ethereum/fubuloubu-pkg-api
Browse files Browse the repository at this point in the history
Ensure that import doesn't leak sys and pkg_resources
  • Loading branch information
jacqueswww authored Oct 20, 2018
2 parents 60cdd7c + c106a90 commit c875cae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions vyper/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import sys
import pkg_resources
import sys as _sys
import pkg_resources as _pkg_resources


if (sys.version_info.major, sys.version_info.minor) < (3, 6):
if (_sys.version_info.major, _sys.version_info.minor) < (3, 6):
# Can't be tested, as our test harness is using python3.6.
raise Exception("Requires python3.6+") # pragma: no cover


try:
__version__ = pkg_resources.get_distribution('vyper').version
except pkg_resources.DistributionNotFound:
__version__ = _pkg_resources.get_distribution('vyper').version
except _pkg_resources.DistributionNotFound:
__version__ = '0.0.0development'

0 comments on commit c875cae

Please sign in to comment.