Skip to content

Commit 9f3b902

Browse files
authored
Merge pull request #25 from Emirati/master
Fixed installation error in python2
2 parents 0a31acf + dd1514a commit 9f3b902

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
Changelog
22
=========
33

4+
## 2019/09/20 (v0.1.5)
5+
- [bugfix] Fixed python2 installation
6+
47
## 2019/09/01 (v0.1.4)
58
- [bugfix] Better support for python3 #22
69

masscan/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
from .masscan import *
44

55
__author__ = 'MyKings (xsseroot@gmail.com)'
6-
__version__ = '0.1.4'
7-
__last_modification__ = '2019.09.02'
6+
__version__ = '0.1.5'
7+
__last_modification__ = '2019.09.20'
88

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# -*- coding: utf-8 -*-
33
import os
44
import sys
5+
import io
56

67
try:
78
from setuptools import setup
@@ -16,10 +17,10 @@
1617
here = os.path.abspath(os.path.dirname(__file__))
1718

1819
if IS_PY2:
19-
with open(os.path.join(here, 'README.rst')) as readme_file:
20+
with io.open(os.path.join(here, 'README.rst')) as readme_file:
2021
long_description = readme_file.read()
2122
else:
22-
with open(os.path.join(here, 'README.rst'), encoding='utf-8') as readme_file:
23+
with io.open(os.path.join(here, 'README.rst'), encoding='utf-8') as readme_file:
2324
long_description = readme_file.read()
2425

2526
setup(

0 commit comments

Comments
 (0)