pyhamtools/pyhamtools
Christoph Berg 6fdb61e531 Don't use timestamps as parameter defaults
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>))
2019-12-15 22:21:46 +01:00
..
__init__.py Added documentation for class Callinfo 2014-04-30 08:56:08 +02:00
callinfo.py Don't use timestamps as parameter defaults 2019-12-15 22:21:46 +01:00
callsign_exceptions.py python3 compatible 2018-01-27 19:52:27 +01:00
consts.py FT8 as mode. FT8 frequencies are now marked as DIGITAL 2018-05-20 20:10:25 +02:00
countryfilemapping.json renamed Swaziland into Kingdom of eSwatini 2019-11-27 03:10:08 +01:00
dxcluster.py Added Push to Redis and Redis as a LookupLib 2014-05-08 15:03:16 +02:00
exceptions.py python3 compatible 2018-01-27 19:52:27 +01:00
frequency.py FT8 as mode. FT8 frequencies are now marked as DIGITAL 2018-05-20 20:10:25 +02:00
locator.py Don't use timestamps as parameter defaults 2019-12-15 22:21:46 +01:00
logging.ini Added documentation for class Callinfo 2014-04-30 08:56:08 +02:00
logparser.py python3 compatible 2018-01-27 19:52:27 +01:00
lookuplib.py Don't use timestamps as parameter defaults 2019-12-15 22:21:46 +01:00
qsl.py corrected json encoding to utf8 2018-01-28 01:35:30 +01:00
utils.py moved freq_to_band to pyhamtools.frequency; short callsigns in other countries (e.g. C6A/9H5A) are now correctly decoded; improved documentation 2014-09-27 01:48:59 +02:00
version.py renamed Swaziland into Kingdom of eSwatini 2019-11-27 03:10:08 +01:00