def version_clean(verstr):
 if (verstr and ('pkg.version_clean' in __salt__)):
  return __salt__['pkg.version_clean'](verstr)
 return verstr

def version_clean ( verstr ) : if ( verstr and ( 'pkg.version_clean' in __salt__ ) ) : return __salt__ [ 'pkg.version_clean' ] ( verstr ) return verstr
clean the version string removing extra data .