diff --git a/setup.py b/setup.py index abc4969c0..6e4819027 100755 --- a/setup.py +++ b/setup.py @@ -9,8 +9,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -from builtins import open - +import io import os from setuptools import setup, find_packages @@ -20,7 +19,7 @@ exec(open('src/openfermion/_version.py').read()) # Readme file as long_description: -long_description = open('README.rst', encoding='utf-8').read() +long_description = io.open('README.rst', encoding='utf-8').read() # Read in requirements.txt requirements = open('requirements.txt').readlines()