Skip to content

Commit

Permalink
feat: add python version check
Browse files Browse the repository at this point in the history
  • Loading branch information
shidenggui committed Feb 19, 2016
1 parent 5fc955d commit 0ac46e2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions easyquotation/api.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import sys
from .sina import Sina
from .leverfun import Leverfun
from .jsl import Jsl

PY_VERSION = sys.version_info[:2]
if PY_VERSION < (3, 5):
raise Exception('Python 版本需要 3.5 或以上, 当前版本为 %s.%s 请升级 Python' % PY_VERSION)


def use(source):
if source in ['sina']:
Expand Down

0 comments on commit 0ac46e2

Please sign in to comment.