From 67cff69ac4275d4cb0fdf0e10403789b6dce45ea Mon Sep 17 00:00:00 2001 From: Yuriy Chernyshov Date: Tue, 22 Nov 2022 13:26:49 +0300 Subject: [PATCH] Convert cp1251 file to utf8 --- pony/converting.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pony/converting.py b/pony/converting.py index a572dbf2..9b5cb1d7 100644 --- a/pony/converting.py +++ b/pony/converting.py @@ -1,5 +1,3 @@ -# coding: cp1251 - from __future__ import absolute_import, print_function import re @@ -134,7 +132,7 @@ def check_rfc2822_email(s): month_lists = [ "jan feb mar apr may jun jul aug sep oct nov dec".split(), - u" ".split(), # Russian + "янв фев мар апр май июн июл авг сен окт ноя дек".split(), # Russian ] month_dict = {} @@ -142,7 +140,7 @@ def check_rfc2822_email(s): for i, month in enumerate(month_list): month_dict[month] = i + 1 -month_dict[u''] = 5 # Russian +month_dict['мая'] = 5 # Russian def str2date(s): s = s.strip().lower()