From 0599539d0964cae461e5045b6e20efb70315a8e9 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Thu, 23 Feb 2017 00:09:19 +0000 Subject: [PATCH] Revert "improve the "main" routine which prints all the date formats" This reverts commit 0c144c97a9ea78e5014237351bdcc78c57ff2542. --- gramps/gen/datehandler/__init__.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/gramps/gen/datehandler/__init__.py b/gramps/gen/datehandler/__init__.py index 73b55b24f..ca0ca473a 100644 --- a/gramps/gen/datehandler/__init__.py +++ b/gramps/gen/datehandler/__init__.py @@ -97,20 +97,14 @@ except: from ._dateutils import * from ._grampslocale import (codeset, tformat) -# set GRAMPS_RESOURCES then: python3 -m gramps.gen.datehandler.__init__ if __name__ == "__main__": from ._datedisplay import DateDisplay m = 0 - date_handlers = sorted(LANG_TO_DISPLAY.items()) - for l,d in date_handlers: - if len(l) != 2 and l not in ('zh_TW'): # Chinese has two date_handlers + for l,d in LANG_TO_DISPLAY.items(): + if len(l) != 2: continue - if l.upper() == l and (l.lower(),d) in date_handlers: - continue # don't need to see the upper-case variant also m = max(m, len(d.formats)) - print("{}: {} {} own-f:{} own-dc:{} own-dg:{}".format( + print("{}: {} {} own dg: {}".format( l, len(d.formats), d.formats, - d.formats != DateDisplay.formats, - d._display_calendar != DateDisplay._display_calendar, d._display_gregorian != DateDisplay._display_gregorian)) print("MAX: ", m)