def match_template_filename(project, filename):
 ext = os.path.splitext(os.path.basename(filename))[1][1:]
 if (ext in project.filetype_tool.template_extensions):
  if (ext not in project.filetype_tool.filetype_extensions):
   return True
  elif (not find_lang_postfix(project, filename)):
   return True
 return False

def match_template_filename ( project , filename ) : ext = os . path . splitext ( os . path . basename ( filename ) ) [ 1 ] [ 1 : ] if ( ext in project . filetype_tool . template_extensions ) : if ( ext not in project . filetype_tool . filetype_extensions ) : return True elif ( not find_lang_postfix ( project , filename ) ) : return True return False
test if .