Skip to content

Commit

Permalink
Use codecs for Python2 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
fmder committed Jun 20, 2019
1 parent c8aca35 commit 4f3f0ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -17,9 +17,9 @@

# read the contents of README file
from os import path
import codecs
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
long_description = codecs.open(path.join(this_directory, 'README.md'), 'r', 'utf-8').read()

import deap

Expand Down

0 comments on commit 4f3f0ee

Please sign in to comment.