Dump data by running as __main__.

This commit is contained in:
ncoop 2016-06-04 20:32:33 -07:00
parent 48273a8205
commit 5272e10208

View File

@ -28,3 +28,10 @@ class Dnf(Backend):
return update_count, notif_body return update_count, notif_body
Backend = Dnf Backend = Dnf
if __name__ == "__main__":
"""
Call this module directly; Print the update count and notification body.
"""
dnf = Dnf()
print("Updates: {}\n\n{}".format(*dnf.updates))