[python-package] modify __init__.py (#1587)

* Update Makefile

* Update Makefile

* modify __init__.py
This commit is contained in:
chanis 2016-09-20 00:43:36 +08:00 committed by Tianqi Chen
parent d3c4d19c91
commit d8876b0b73

View File

@ -18,7 +18,8 @@ except ImportError:
pass
VERSION_FILE = os.path.join(os.path.dirname(__file__), 'VERSION')
__version__ = open(VERSION_FILE).read().strip()
with open(VERSION_FILE) as f:
__version__ = f.read().strip()
__all__ = ['DMatrix', 'Booster',
'train', 'cv',