def isSyncFile(filename):
 extension = filename.rpartition(u'.')[2].lower()
 syncfiles = sickrage.srCore.srConfig.SYNC_FILES
 if ((extension in syncfiles.split(u',')) or filename.startswith(u'.syncthing')):
  return True
 else:
  return False

def isSyncFile ( filename ) : extension = filename . rpartition ( u'.' ) [ 2 ] . lower ( ) syncfiles = sickrage . srCore . srConfig . SYNC_FILES if ( ( extension in syncfiles . split ( u',' ) ) or filename . startswith ( u'.syncthing' ) ) : return True else : return False
returns true if filename is a syncfile .