Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa7bb830 authored by Dan Willemsen's avatar Dan Willemsen Committed by Automerger Merge Worker
Browse files

Merge "Fix potential error for sys.platform" am: 59f36c19

parents 7660d6a3 59f36c19
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -72,9 +72,9 @@ ELF = collections.namedtuple(

def _get_os_name():
  """Get the host OS name."""
  if sys.platform == 'linux2':
  if sys.platform.startswith('linux'):
    return 'linux'
  if sys.platform == 'darwin':
  if sys.platform.startswith('darwin'):
    return 'darwin'
  raise ValueError(sys.platform + ' is not supported')