Fixes #977 with none deprecated call.

This commit is contained in:
neeasade 2015-09-29 12:56:49 -05:00
parent 11961db72c
commit b5ec476ca6

View File

@ -162,7 +162,7 @@ def _os_info():
lines = []
releaseinfo = None
if sys.platform == 'linux':
osver = ', '.join([e for e in platform.dist() if e])
osver = ', '.join([e for e in platform.linux_distribution() if e])
releaseinfo = _release_info()
elif sys.platform == 'win32':
osver = ', '.join(platform.win32_ver())