native_client_sdk/src/tools/tests/create_nmf_test.py
def StripSo(name):
  """Strip trailing hexidecimal characters from the name of a shared object.

  It strips everything after the last '.' in the name, and checks that the new
  name ends with .so.

  e.g.

  libc.so.ad6acbfa => libc.so
  foo.bar.baz => foo.bar.baz
  """
  if '.' in name:
    stripped_name, ext = name.rsplit('.', 1)
    if stripped_name.endswith('.so') and len(ext) > 1:
      return stripped_name
  return name
Strip trailing hexidecimal characters from the name of a shared object.

  It strips everything after the last '.' in the name, and checks that the new
  name ends with .so.

  e.g.

  libc.so.ad6acbfa => libc.so
  foo.bar.baz => foo.bar.baz
  
Strip trailing hexidecimal characters from the name of a shared object.
It strips everything after the last '.' in the name, and checks that the new
name ends with .so.




Strip trailing hexidecimal characters from the name of a shared object . It strips everything after the last ' . ' in the name and checks that the new name ends with . so .
def StripSo(name):
  if '.' in name:
    stripped_name, ext = name.rsplit('.', 1)
    if stripped_name.endswith('.so') and len(ext) > 1:
      return stripped_name
  return name
def StripSo ( name ) : if '.' in name : stripped_name , ext = name . rsplit ( '.' , 1 ) if stripped_name . endswith ( '.so' ) and len ( ext ) > 1 : return stripped_name return name
Strip trailing hexidecimal characters from the name of a shared object.
Strip trailing hexidecimal characters from the name of a shared object .
"""Strip trailing hexidecimal characters from the name of a shared object.

  It strips everything after the last '.' in the name, and checks that the new
  name ends with .so.

  e.g.

  libc.so.ad6acbfa => libc.so
  foo.bar.baz => foo.bar.baz
  """
name