Skip to content

Commit 377b2e7

Browse files
author
zhenwei-li
committed
修改为 3.x 语言规范
1 parent 597aebc commit 377b2e7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/com/dvsnier/process/execute.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ def execute(cmds, quiet=True):
3636
end = time.time()
3737
if not quiet:
3838
if platform.system() == 'Linux' and os.isatty(1):
39-
print '\r',
39+
print('\r'),
4040
msg = '[%.5f] -> %s' % (end - start, ' | '.join(cmds))
41-
print msg
41+
print(msg)
4242
content = output.rstrip('\n')
4343
# logging.debug('the current run process pid(cwd: %s, ppid: %s, id: %s%d).' %
4444
# (p.pid, os.getppid(), type(p), id(p)))

0 commit comments

Comments
 (0)