def modname(path):
 base = os.path.basename(path)
 (filename, ext) = os.path.splitext(base)
 return filename

def modname ( path ) : base = os . path . basename ( path ) ( filename , ext ) = os . path . splitext ( base ) return filename
return a plausible module name for the patch .