def _GetOutputTargetExt(spec):
 target_extension = spec.get('product_extension')
 if target_extension:
  return ('.' + target_extension)
 return None

def _GetOutputTargetExt ( spec ) : target_extension = spec . get ( 'product_extension' ) if target_extension : return ( '.' + target_extension ) return None
returns the extension for this target .