Remove unused render_json
This commit is contained in:
parent
a983a744be
commit
26165647e3
@ -71,7 +71,7 @@ class Config:
|
||||
continue
|
||||
module.run()
|
||||
output = module.output or {"full_text": "(no output)"}
|
||||
print(render_json(output))
|
||||
print(output.get("full_text", ""))
|
||||
|
||||
i3pystatus.Status = TestStatus
|
||||
yield
|
||||
|
@ -348,13 +348,6 @@ class TimeWrapper:
|
||||
).strip()
|
||||
|
||||
|
||||
def render_json(json):
|
||||
if not json.get("full_text", ""):
|
||||
return ""
|
||||
|
||||
return json["full_text"]
|
||||
|
||||
|
||||
def require(predicate):
|
||||
"""
|
||||
Decorator factory for methods requiring a predicate. If the predicate is not fulfilled during a method call, the
|
||||
|
Loading…
Reference in New Issue
Block a user