Taking alternate approach.
Revert "Fix hostname when get_distribution_version() returns a string."
This reverts commit 08f97c0b9d
.
This commit is contained in:
parent
8b77aa9843
commit
fb60e767a7
1 changed files with 1 additions and 4 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue