mirror of
https://github.com/dh1tw/pyhamtools.git
synced 2026-01-02 06:40:21 +01:00
Constructs like
def calculate_sunrise_sunset(locator, calc_date=datetime.utcnow()):
are actually wrong because they initialize the parameter default at
module load time, not at function call time. If the program is running
over some time, the result will be wrong.
As a side-effect, this fix makes the docs (and the whole project) build
reproducibly because previously the build time was embedded in the
sphinx docs:
lookup_prefix(prefix, timestamp=datetime.datetime(2019, 11, 27, 3, 4, 36, 93157, tzinfo=<UTC>))
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| callinfo.py | ||
| callsign_exceptions.py | ||
| consts.py | ||
| countryfilemapping.json | ||
| dxcluster.py | ||
| exceptions.py | ||
| frequency.py | ||
| locator.py | ||
| logging.ini | ||
| logparser.py | ||
| lookuplib.py | ||
| qsl.py | ||
| utils.py | ||
| version.py | ||