Skip to content

Commit 043c81a

Browse files
committed
Replace execfile() usage per python 3
1 parent ed24486 commit 043c81a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
1+
# -*- coding: utf-8; -*-
32
################################################################################
43
#
54
# sqlalchemy-pervasive -- SQLAlchemy Dialect for Pervasive PSQL
6-
# Copyright © 2013 Sacramento Natural Foods Co-op, Inc
5+
# Copyright © 2013-2018 Sacramento Natural Foods Co-op, Inc
76
#
87
# This file is part of sqlalchemy-pervasive.
98
#
@@ -22,13 +21,14 @@
2221
#
2322
################################################################################
2423

24+
from __future__ import unicode_literals, absolute_import
2525

2626
import os.path
2727
from setuptools import setup, find_packages
2828

2929

3030
here = os.path.abspath(os.path.dirname(__file__))
31-
execfile(os.path.join(here, 'sqlalchemy_pervasive', '_version.py'))
31+
exec(open(os.path.join(here, 'sqlalchemy_pervasive', '_version.py')).read())
3232

3333
README = open(os.path.join(here, 'README.rst')).read()
3434
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()

0 commit comments

Comments
 (0)