From 42857b2f7ed9790b1e71f6f1cc0bcc4a5c1b2701 Mon Sep 17 00:00:00 2001 From: Mike Hiretsky Date: Thu, 23 Aug 2012 15:03:30 +0400 Subject: [PATCH] Fix patch utf-8 --- pym/format/patch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: # Замены в тексте конфигурационного файла