(src)
return bad
Check the source directory if it passes the criteria for a valid
    build. This means all files should be utf8 with a bom and all language
    strings present in the sources should be present in all the language
    files
Check the source directory if it passes the criteria for a valid
    build. This means all files should be utf8 with a bom and all language
    strings present in the sources should be present in all the language
    files
Check the source directory if it passes the criteria for a valid build . This means all files should be utf8 with a bom and all language strings present in the sources should be present in all the language files
def _get_bad_encoding_files(src):
    """Check the source directory if it passes the criteria for a valid
    build. This means all files should be utf8 with a bom and all language
    strings present in the sources should be present in all the language
    files"""
    files = os.walk(src)
    
    bad = []
    for base, dirs, files in os.walk(src):
        for file in [f for f in files if f.endswith(_text_exts)]:
            abs = os.path.join(base, file)
            if not _is_utf8(abs): bad.append(abs)
            
    return bad
def _get_bad_encoding_files ( src ) : files = os . walk ( src ) bad = [ ] for base , dirs , files in os . walk ( src ) : for file in [ f for f in files if f . endswith ( _text_exts ) ] : abs = os . path . join ( base , file ) if not _is_utf8 ( abs ) : bad . append ( abs ) return bad