From f849293780267d8fe8408eab2fac784d31d4baab Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Sat, 27 May 2017 12:22:16 +0200 Subject: Add a nameless age before version 0.01 (aproximated) and buzz --- debdate | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/debdate b/debdate index e602f63..20916d0 100755 --- a/debdate +++ b/debdate @@ -38,7 +38,10 @@ ERR_MSG = "Today is {isodate} of the Debianless Age" class DebDate: - def __init__(self, distro_info_file='/usr/share/distro-info/debian.csv'): + def __init__( + self, + distro_info_file='/usr/share/distro-info/debian.csv', + nameless_age=datetime.date(1993, 8, 1)): self.releases = [] try: with open(distro_info_file) as fp: @@ -59,6 +62,11 @@ class DebDate: self.releases.sort(key=lambda x: x[0], reverse=True) if not self.releases: self.releases = RELEASES + if nameless_age: + self.releases.append(( + nameless_age, + 'Nameless Age' + )) def get_release(self, day): data = {} -- cgit v1.2.3