Skip to content
This repository was archived by the owner on Feb 21, 2024. It is now read-only.

Commit f80ecec

Browse files
committed
PY3: Fix printing to stderr.
1 parent 6a81909 commit f80ecec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
from __future__ import print_function
23
import os
34
import sys
45

@@ -12,7 +13,7 @@
1213
here = os.path.abspath(os.path.dirname(__file__))
1314

1415
VERSION=open('commit-version').read().strip()
15-
print >>sys.stderr, "Preparing version {0}\n".format(VERSION or "NOTFOUND")
16+
print("Preparing version {0}\n".format(VERSION or "NOTFOUND"), file=sys.stderr)
1617

1718

1819
try:

0 commit comments

Comments
 (0)