提交 0a7e6559 编写于 作者: D Daniel Graña

Merge pull request #681 from kmike/version_info

[MRG] make scrapy.version_info a tuple of integers
......@@ -6,7 +6,7 @@ import pkgutil
__version__ = pkgutil.get_data(__package__, 'VERSION').strip()
if not isinstance(__version__, str):
__version__ = __version__.decode('ascii')
version_info = tuple(__version__.split('.')[:3])
version_info = tuple(int(v) for v in __version__.split('.')[:3])
import sys, os, warnings
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册