fix using tm_day unsupported on py2

This commit is contained in:
Atsushi Odagiri
2017-10-01 01:14:44 +09:00
parent 0d062515d6
commit 033b969d09
+2 -2
View File
@@ -86,11 +86,11 @@ if not PIPENV_HIDE_EMOJIS:
now = time.localtime()
# Halloween easter-egg.
if ((now.tm_mon == 10) and (now.tm_day == 30)) or ((now.tm_mon == 10) and (now.tm_day == 31)):
if ((now.tm_mon == 10) and (now.tm_mday == 30)) or ((now.tm_mon == 10) and (now.tm_mday == 31)):
INSTALL_LABEL = '🎃 '
# Christmas easter-egg.
elif ((now.tm_mon == 12) and (now.tm_day == 24)) or ((now.tm_mon == 12) and (now.tm_day == 25)):
elif ((now.tm_mon == 12) and (now.tm_mday == 24)) or ((now.tm_mon == 12) and (now.tm_mday == 25)):
INSTALL_LABEL = '🎅 '
else: