diff --git a/pym/format/patch.py b/pym/format/patch.py index ba11f6b..bb55a00 100644 --- a/pym/format/patch.py +++ b/pym/format/patch.py @@ -109,7 +109,7 @@ class patch(_error): return False else: text = "" - dataList.append((regex, text)) + dataList.append((regex, text.encode('utf-8'))) regex = False for regex, text in dataList: # Замены в тексте конфигурационного файла