Skip to content

Commit 711b82f

Browse files
committed
use print function
1 parent 127d06c commit 711b82f

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"""
77

88
# Always prefer setuptools over distutils
9+
from __future__ import print_function
910
from setuptools import setup, find_packages, Extension
1011
# To use a consistent encoding
1112
from codecs import open
@@ -43,12 +44,12 @@ def download_library():
4344
if ARCH == '64':
4445
url = "http://www.sqlparser.com/dl/gsqlparser_c_linux64_trial_0_3_8.tar.gz"
4546

46-
print "Downloading library from '%s'..." % url
47+
print("Downloading library from '%s'..." % url)
4748

4849
urllib.urlretrieve(url, file_name)
4950

50-
print "Done!"
51-
print "Extracting archive..."
51+
print("Done!")
52+
print("Extracting archive...")
5253

5354
if os.name == "nt":
5455
import zipfile
@@ -61,7 +62,7 @@ def download_library():
6162
archive = tarfile.open(file_name)
6263
archive.extractall(SQLPARSER_DIR)
6364

64-
print "Done!"
65+
print("Done!")
6566

6667

6768
if not os.path.isdir(SQLPARSER_DIR):

0 commit comments

Comments
 (0)