Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b34abce

Browse files
committed
adding a special case for Python3
1 parent 47c031d commit b34abce

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
@@ -22,12 +22,12 @@
2222
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2323
# SOFTWARE.
2424

25-
from past.builtins import execfile
26-
27-
execfile('zerorpc/version.py')
28-
2925
import sys
3026

27+
if sys.version_info < (3, 0):
28+
execfile('zerorpc/version.py')
29+
else:
30+
exec(compile(open('zerorpc/version.py', encoding='utf8').read(), 'zerorpc/version.py', 'exec'))
3131

3232
try:
3333
from setuptools import setup

0 commit comments

Comments
 (0)