Skip to content

Commit

Permalink
sst_unittest_support.py: remove outdated call to platform.linux_distr…
Browse files Browse the repository at this point in the history
…ibution
  • Loading branch information
berquist committed Nov 12, 2024
1 parent 44584b7 commit 53f93c1
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/sst/core/testingframework/sst_unittest_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -1874,14 +1874,8 @@ def os_extract_tar(tarfilepath: str, targetdir: str = ".") -> bool:
################################################################################

def _get_linux_distribution() -> Tuple[str, str]:
""" Return the linux distribution info as a tuple"""
# The method linux_distribution is depricated in deprecated in Py3.5
_linux_distribution = getattr(platform, 'linux_distribution', None)
# This is the easy method for Py2 - p3.7.
if _linux_distribution is not None:
return _linux_distribution()

# We need to do this the hard way, NOTE: order of checking is important
"""Return the linux distribution info as a tuple"""
# NOTE: order of checking is important
distname = "undefined"
distver = "undefined"
if os.path.isfile("/etc/toss-release"):
Expand Down

0 comments on commit 53f93c1

Please sign in to comment.