Renamed gramps.gen.lib.calendar to gramps.gen.lib.gcalendar to avoid import conflict with Python lib calendar
This commit is contained in:
parent
f4abd460ba
commit
66fd541eea
@ -53,7 +53,7 @@ log = logging.getLogger(".Date")
|
||||
from ..const import GRAMPS_LOCALE as glocale
|
||||
_ = glocale.translation.sgettext
|
||||
|
||||
from .calendar import (gregorian_sdn, julian_sdn, hebrew_sdn,
|
||||
from .gcalendar import (gregorian_sdn, julian_sdn, hebrew_sdn,
|
||||
french_sdn, persian_sdn, islamic_sdn, swedish_sdn,
|
||||
gregorian_ymd, julian_ymd, hebrew_ymd,
|
||||
french_ymd, persian_ymd, islamic_ymd,
|
||||
|
@ -28,7 +28,7 @@ from __future__ import print_function
|
||||
from gramps.gen.const import GRAMPS_LOCALE as glocale
|
||||
_ = glocale.translation.gettext
|
||||
from xml.parsers import expat
|
||||
from gramps.gen.lib.calendar import (gregorian_ymd, hebrew_sdn)
|
||||
from gramps.gen.lib.gcalendar import (gregorian_ymd, hebrew_sdn)
|
||||
import datetime
|
||||
import math
|
||||
from gramps.gen.const import PLUGINS_DIR, USER_PLUGINS
|
||||
|
@ -33,7 +33,8 @@ Web Calendar generator.
|
||||
#------------------------------------------------------------------------
|
||||
from functools import partial
|
||||
import os, codecs, shutil, re, sys
|
||||
import datetime, calendar
|
||||
import datetime
|
||||
import calendar # Python module
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
# Set up logging
|
||||
|
@ -128,7 +128,7 @@ gramps/gen/lib/addressbase.py
|
||||
gramps/gen/lib/attrbase.py
|
||||
gramps/gen/lib/attribute.py
|
||||
gramps/gen/lib/baseobj.py
|
||||
gramps/gen/lib/calendar.py
|
||||
gramps/gen/lib/gcalendar.py
|
||||
gramps/gen/lib/childref.py
|
||||
gramps/gen/lib/citationbase.py
|
||||
gramps/gen/lib/citation.py
|
||||
|
Loading…
Reference in New Issue
Block a user