-
-
Notifications
You must be signed in to change notification settings - Fork 101
Python 2 Support
Support for Python 2 will be removed from the MLB-StatsAPI on or after January 1, 2021. The module may continue to function in Python 2, but any issues not impacting Python 3 will be closed. This change is likely to have an impact on string encoding, which may result in player names with non-ascii characters not being returned as expected. Specifically, I will be removing the following lines which apply only to Python 2:
# Trying to support Python 2.7:
if sys.version_info.major < 3:
reload(sys)
sys.setdefaultencoding("utf8")
Python 2 has been officially unsupported since January 1, 2020. The MLB-StasAPI module will follow suit one year later.
Note: This information is provided for reference only, without warranty or guarantee, and is not official documentation provided by MLB. This package and its author are not affiliated with MLB or any MLB team. This API wrapper interfaces with MLB's Stats API. Use of MLB data is subject to the notice posted at http://gdx.mlb.com/components/copyright.txt.