diff options
author | Brett Cannon <brett@python.org> | 2014-08-29 15:48:24 -0400 |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2014-08-29 15:48:24 -0400 |
commit | 8e23aa2b179274c9c1b128a8b3daf8d2e24cfd75 (patch) | |
tree | c234e08aa390be9bca941e66e508071e5e44a801 /epylint.py | |
parent | 001469c8272a235b4f62b9b5c3ee248635168ad4 (diff) | |
parent | c2cc31874880d7f0d5bd444c6a3b17fa817e2509 (diff) | |
download | pylint-python_6.tar.gz |
Merge with defaultpython_6
Diffstat (limited to 'epylint.py')
-rwxr-xr-x | epylint.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -45,6 +45,7 @@ For example: You may also use py_run to run pylint with desired options and get back (or not) its output. """ +from __future__ import print_function import sys, os import os.path as osp @@ -102,7 +103,7 @@ def lint(filename, options=None): parts = line.split(":") if parts and parts[0] == child_path: line = ":".join([filename] + parts[1:]) - print line, + print(line, end=' ') process.wait() return process.returncode @@ -162,10 +163,10 @@ def py_run(command_options='', return_std=False, stdout=None, stderr=None, def Run(): if len(sys.argv) == 1: - print "Usage: %s <filename> [options]" % sys.argv[0] + print("Usage: %s <filename> [options]" % sys.argv[0]) sys.exit(1) elif not osp.exists(sys.argv[1]): - print "%s does not exist" % sys.argv[1] + print("%s does not exist" % sys.argv[1]) sys.exit(1) else: sys.exit(lint(sys.argv[1], sys.argv[2:])) |