Skip to content
Permalink
Browse files

handle being i py3 correctly

  • Loading branch information
ralsina committed Oct 3, 2015
1 parent 484e6b7 commit 2304b498ef438230cd58b961c647ff42ef171fb2
Showing with 2 additions and 3 deletions.
  1. +2 −3 nikola/plugins/task/py3_switch.py
@@ -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)

0 comments on commit 2304b49

Please sign in to comment.
You can’t perform that action at this time.