From 033b969d094ba2d80f8ae217c8c604bc40160b03 Mon Sep 17 00:00:00 2001 From: Atsushi Odagiri Date: Sun, 1 Oct 2017 01:14:44 +0900 Subject: [PATCH] fix using tm_day unsupported on py2 --- pipenv/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pipenv/cli.py b/pipenv/cli.py index 719c9e93..6fa6f02b 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -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: