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()