uname: add deprecation stuffs
Display uname information.
Configuration parameters:
- cache_timeout: how often we refresh this module in seconds (default 3600)
format: see placeholders below (default '{system} {release} {machine}')
Format placeholders:
@@ -24,13 +23,22 @@ class Py3status:
"""
"""
# available configuration parameters
- cache_timeout = 3600
format = '{system} {release} {machine}'
+ class Meta:
+ deprecated = {
+ 'remove': [
+ {
+ 'param': 'cache_timeout',
+ 'msg': 'obsolete parameter',
+ },
+ ],
+ }
+
def show_uname(self):
system, node, release, version, machine, processor = uname()
response = {
- 'cached_until': self.py3.time_in(self.cache_timeout),
+ 'cached_until': self.py3.CACHE_FOREVER,
'full_text': self.py3.safe_format(
self.format,
dict(system=system,
