Revert "Fix get_distribution() for platforms that may have spaces"

This reverts commit 2493020d9f.
pull/6607/merge
James Cammarata 11 years ago
parent 0ee28c1a0e
commit 81f35323e9

@ -167,8 +167,6 @@ def get_distribution():
if platform.system() == 'Linux':
try:
distribution = platform.linux_distribution()[0].capitalize()
if " " in distribution:
distribution = distribution.split()[0]
if not distribution and os.path.isfile('/etc/system-release'):
distribution = platform.linux_distribution(supported_dists=['system'])[0].capitalize()
if 'Amazon' in distribution:

Loading…
Cancel
Save