From 0667dd45da52debe1d6da39e42ddc4fa44082854 Mon Sep 17 00:00:00 2001 From: Yuri Bochkarev Date: Sat, 9 Jun 2018 21:33:38 +0300 Subject: [PATCH] Use io.open in setup.py for compatibility with Python 2.7 --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index bdb6775..f3e2ff6 100644 --- a/setup.py +++ b/setup.py @@ -10,6 +10,8 @@ from __future__ import print_function import os.path import subprocess import sys +# For compatibility with Python2.7 +from io import open from setuptools import setup @@ -100,7 +102,8 @@ setup( description='Script for downloading Coursera.org videos and naming them.', long_description=long_description, - keywords=['coursera-dl', 'coursera', 'download', 'education', 'MOOCs', 'video'], + keywords=['coursera-dl', 'coursera', + 'download', 'education', 'MOOCs', 'video'], classifiers=trove_classifiers, packages=["coursera"],