From 05de7710490b5a2d5e28290163e6f65d0e3d48b6 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 6 Jul 2017 16:28:07 -0500 Subject: [PATCH] Replace occurrence of `execfile()` --- setup.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 9058336..aa489c1 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,8 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- +# -*- coding: utf-8; -*- ################################################################################ # # Rattail -- Retail Software Framework -# Copyright © 2010-2012 Lance Edgar +# Copyright © 2010-2017 Lance Edgar # # This file is part of Rattail. # @@ -28,7 +27,7 @@ from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) -execfile(os.path.join(here, 'rattail_cognitive', '_version.py')) +exec(open(os.path.join(here, 'rattail_cognitive', '_version.py')).read()) README = open(os.path.join(here, 'README.txt')).read() CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()