From 8c0064206e738803c2251b06033d10f7cf922648 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 10 Apr 2017 06:14:24 +0300 Subject: [PATCH] =?utf8?q?=D0=A1=D0=BB=D0=B5=D0=B3=D0=BA=D0=B0=20=D0=BC?= =?utf8?q?=D0=BE=D0=B4=D0=B5=D1=80=D0=BD=D0=B8=D0=B7=D0=B8=D1=80=D0=BE?= =?utf8?q?=D0=B2=D0=B0=D1=82=D1=8C=20=D0=B8=D1=81=D1=85=D0=BE=D0=B4=D0=BD?= =?utf8?q?=D0=B8=D0=BA=20reindex=5Fblog.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- reindex_blog.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reindex_blog.py b/reindex_blog.py index c2a87c6..ac22002 100755 --- a/reindex_blog.py +++ b/reindex_blog.py @@ -96,14 +96,14 @@ if blog <> old_blog: import locale locale.setlocale(locale.LC_ALL, "ru_RU.KOI8-R") -from calendar import _localized_day, _localized_month +from calendar import _localized_month locale.setlocale(locale.LC_TIME, 'C') months_names_en = list(_localized_month('%B')) months_abbrs_en = list(_localized_month('%b')) locale.setlocale(locale.LC_TIME, "ru_RU.KOI8-R") -#months_names_ru = list(_localized_month('%B')) +# months_names_ru = list(_localized_month('%B')) months_names_ru = ['', "ÑÎ×ÁÒÑ", "ÆÅ×ÒÁÌÑ", "ÍÁÒÔÁ", "ÁÐÒÅÌÑ", "ÍÁÑ", "ÉÀÎÑ", "ÉÀÌÑ", "Á×ÇÕÓÔÁ", "ÓÅÎÔÑÂÒÑ", "ÏËÔÑÂÒÑ", "ÎÏÑÂÒÑ", "ÄÅËÁÂÒÑ" @@ -214,7 +214,7 @@ def write_template(level, year, month, day, titles, tags=None): href.append(file) href = '/'.join(href) if day[0] == '0': day = day[1:] - if save_date <> (year, month, day): + if save_date != (year, month, day): if level == 0: new_text.append('\n

%s %s %s

' % (day, months_names_ru[int(month)], year)) else: -- 2.39.2