Package linda :: Module eggs
[hide private]

Source Code for Module linda.eggs

 1  import time 
 2   
3 -class LindaEasterEggs:
4 - def __init__(self):
5 cur_time = time.localtime() 6 if (cur_time[2], cur_time[1]) == (14, 2): 7 print _("Roses are red, violets are blue, ") 8 print _("lintian is dead and Culus goes moo.") 9 elif (cur_time[2], cur_time[1]) == (25, 11) and cur_time[0] >= 2001: 10 tmp_num = cur_time[0] - 2001 11 print _("Happy birthday to me!") 12 print _("I'm %d today!") % tmp_num 13 elif (cur_time[2], cur_time[1]) == (25, 12): 14 print _("Yay, it's Christmas. Did you get me a present?")
15