summaryrefslogtreecommitdiff
path: root/grc/core/cache.py
Commit message (Collapse)AuthorAgeFilesLines
* grc: pep8 formattingJosh Morman2021-11-241-2/+2
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* GRC: cache now time-dependent, version-sensitiveMarcus Müller2021-06-041-8/+34
| | | | | | | | | | | | | | | | | | Complete Cache will be discarded if current cache file * has no version info * version older than version in cacheversion.in (i.e. after an update) Cached entry will be reloaded from yaml if * missing * cached-at property smaller than modification time of yaml file (half second tolerance, due to inelegant floating point modification time handling in python) Also, a bit of debug logging. Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* grc: cache: remove unused functionMarcus Müller2021-06-041-9/+0
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* grc: cache: remove useless importMarcus Müller2021-06-041-2/+0
| | | | | | io.open is just an alias for builtin open Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* grc: remove sixClayton Smith2020-10-051-6/+2
|
* python: Remove unnecessary 'from __future__ import'Oleksandr Kravchuk2020-08-031-1/+0
| | | | | | | | | | | | | | | | All of the removed `from __future__ import` were needed in older versions of Python (mostly 2.5.x and below) but later became mandatory in most versions of Python 3 hence are not necessary anymore. More specifically, according to __future__.py[1]: - unicode_literals is part of Python since versions 2.6.0 and 3.0.0; - print_function is part of Python since versions 2.6.0 and 3.0.0; - absolute_import is part of Python since versions 2.5.0 and 3.0.0; - division is part of Python since versions 2.2.0 and 3.0.0; Get rid of those unnecessary imports to slightly clean up the codebase. [1] https://github.com/python/cpython/blob/master/Lib/__future__.py
* Update license header to SPDX formatdevnulling2020-01-271-13/+2
|
* grc: Squelch more debug messages.Ron Economos2019-04-221-1/+1
|
* grc: make cache dumping compatible across Py2/Py3Andrej Rode2018-08-071-2/+3
|
* grc: fix json cache dumping to work with python 3.5Andrej Rode2017-12-031-2/+2
|
* grc: disable auto-conversion and implement json cacheSebastian Koslowski2017-11-081-0/+99