Taking alternate approach.

Revert "Fix hostname when get_distribution_version() returns a string."

This reverts commit 08f97c0b9d.
This commit is contained in:
Michael DeHaan 2014-07-28 11:35:33 -04:00
parent 8b77aa9843
commit fb60e767a7

View file

@ -190,11 +190,8 @@ def get_distribution_version():
except:
# FIXME: MethodMissing, I assume?
distribution_version = platform.dist()[1]
if type(distribution_version) == str:
distribution_version = 0
else:
distribution_version = 0
distribution_version = None
return distribution_version
def load_platform_subclass(cls, *args, **kwargs):