app.py
def transliterate_cyrillic_paths(paths):
    """Rename cyrillic files.
    Warn: it transliterate all the string in 'paths' variable, not filename only.
    """
    logger.debug("Поступили на транслитерацию пути:")
    symbols = (u"абвгдеёжзийклмнопрстуфхцчшщъыьэюяАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ",
            u"abvgdeejzijklmnoprstufhzcss_y_euaABVGDEEJZIJKLMNOPRSTUFHZCSS_Y_EUA")
    tr = {ord(a):ord(b) for a, b in zip(*symbols)}
    for f in paths:
        logger.debug(f)
        os.rename(f, f.translate(tr))
Rename cyrillic files.
    Warn: it transliterate all the string in 'paths' variable, not filename only.
    
Rename cyrillic files.
Warn: it transliterate all the string in 'paths' variable, not filename only.
Rename cyrillic files . Warn : it transliterate all the string in ' paths ' variable not filename only .
def transliterate_cyrillic_paths(paths):
    logger.debug("Поступили на транслитерацию пути:")
    symbols = (u"абвгдеёжзийклмнопрстуфхцчшщъыьэюяАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ",
            u"abvgdeejzijklmnoprstufhzcss_y_euaABVGDEEJZIJKLMNOPRSTUFHZCSS_Y_EUA")
    tr = {ord(a):ord(b) for a, b in zip(*symbols)}
    for f in paths:
        logger.debug(f)
        os.rename(f, f.translate(tr))
def transliterate_cyrillic_paths ( paths ) : logger . debug ( "Поступили на транслитерацию пути:") symbols = ( u"абвгдеёжзийклмнопрстуфхцчшщъыьэюяАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ", u"abvgdeejzijklmnoprstufhzcss_y_euaABVGDEEJZIJKLMNOPRSTUFHZCSS_Y_EUA" ) tr = { ord ( a ) : ord ( b ) for a , b in zip ( * symbols ) } for f in paths : logger . debug ( f ) os . rename ( f , f . translate ( tr ) )
Rename cyrillic files.
Rename cyrillic files .
"""Rename cyrillic files.
    Warn: it transliterate all the string in 'paths' variable, not filename only.
    """
paths