Skip to content

Commit 771c770

Browse files
committed
Update the makesdist script for Python 3.
1 parent 4c34e92 commit 771c770

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎devutils/makesdist‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ vfb = versiondata.get('DEFAULT', 'version').split('.post')[0] + '.post0'
2121
emsg = "Invalid FALLBACK_VERSION. Expected %r got %r."
2222
assert vfb == FALLBACK_VERSION, emsg % (vfb, FALLBACK_VERSION)
2323

24-
print 'Run "setup.py sdist --formats=tar"',
24+
print('Run "setup.py sdist --formats=tar"', end=' ')
2525
cmd_sdist = [sys.executable] + 'setup.py sdist --formats=tar'.split()
2626
ec = subprocess.call(cmd_sdist, cwd=BASEDIR, stdout=open(os.devnull, 'w'))
2727
if ec: sys.exit(ec)
28-
print "[done]"
28+
print("[done]")
2929

3030
tarname = max(glob.glob(BASEDIR + '/dist/*.tar'), key=os.path.getmtime)
3131

@@ -41,10 +41,10 @@ def fixtarinfo(tinfo):
4141
return tinfo
4242

4343

44-
print 'Filter %s --> %s.gz' % (2 * (os.path.basename(tarname),)),
44+
print('Filter %s --> %s.gz' % (2 * (os.path.basename(tarname),)), end=' ')
4545
for ti in tfin:
4646
tfout.addfile(fixtarinfo(ti), tfin.extractfile(ti))
4747

4848
tfin.close()
4949
os.remove(tarname)
50-
print "[done]"
50+
print("[done]")

0 commit comments

Comments
 (0)