Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
handle being i py3 correctly
  • Loading branch information
ralsina committed Oct 3, 2015
1 parent 484e6b7 commit 2304b49
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nikola/plugins/task/py3_switch.py
Expand Up @@ -84,11 +84,10 @@ class Py3Switch(LateTask):
def gen_tasks(self):
"""Beg the user to switch to python 3."""

if sys.version_info[0] == 3:
# Python 3
return

def give_warning():
if sys.version_info[0] == 3:
return
if has_python_3():
LOGGER.warn(random.choice(PY2_BARBS))
LOGGER.warn(PY2_WARNING)
Expand Down

0 comments on commit 2304b49

Please sign in to comment.