From f708b11ea49162ac6465d1a5db2baf173a521a7a Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Fri, 5 Feb 2016 02:34:49 -0800 Subject: [PATCH] Fix Python 2.7 warning --- setup.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index 187e8ddb..f4e37592 100644 --- a/setup.py +++ b/setup.py @@ -1,18 +1,20 @@ #!/usr/bin/env python3 +# -*- coding: utf-8 -*- # © 2015 James R. Barlow: github.com/jbarlow83 from __future__ import print_function, unicode_literals -from setuptools import setup -from subprocess import STDOUT, check_output, CalledProcessError -from collections.abc import Mapping -import re + import sys - - if sys.version_info < (3, 4): print("Python 3.4 or newer is required") sys.exit(1) +from setuptools import setup # nopep8 +from subprocess import STDOUT, check_output, CalledProcessError # nopep8 +from collections.abc import Mapping # nopep8 +import re # nopep8 + + missing_program = ''' The program '{program}' could not be executed or was not found on your system PATH.