From a33ba5241f4de1eb875e442d4a3b34909368939c Mon Sep 17 00:00:00 2001 From: MyKings Date: Tue, 15 Oct 2019 15:36:22 +0800 Subject: [PATCH] fixed #26 --- setup.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/setup.py b/setup.py index 88f7e5d..24e75ca 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env # -*- coding: utf-8 -*- import os import sys @@ -16,12 +16,8 @@ here = os.path.abspath(os.path.dirname(__file__)) -if IS_PY2: - with io.open(os.path.join(here, 'README.rst')) as readme_file: - long_description = readme_file.read() -else: - with io.open(os.path.join(here, 'README.rst'), encoding='utf-8') as readme_file: - long_description = readme_file.read() +with io.open(os.path.join(here, 'README.rst'), encoding='utf-8') as readme_file: + long_description = readme_file.read() setup( name='python-masscan',