core: remove render module

This commit is contained in:
enkore 2013-10-01 13:04:47 +02:00
parent a3d86e7a44
commit 7f57950478
3 changed files with 8 additions and 7 deletions

View File

@ -4,7 +4,7 @@ import runpy
import sys import sys
import contextlib import contextlib
from i3pystatus.core.render import render_json from i3pystatus.core.util import render_json
SEARCHPATH = ( SEARCHPATH = (
"~/.i3pystatus.py", "~/.i3pystatus.py",

View File

@ -1,6 +0,0 @@
def render_json(json):
if not json.get("full_text", ""):
return ""
return json["full_text"]

View File

@ -270,3 +270,10 @@ class TimeWrapper:
H="%02d" % h, M="%02d" % m, S="%02d" % s, H="%02d" % h, M="%02d" % m, S="%02d" % s,
l=l, L=L, l=l, L=L,
).strip() ).strip()
def render_json(json):
if not json.get("full_text", ""):
return ""
return json["full_text"]