summaryrefslogtreecommitdiff
path: root/epylint.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2014-08-29 15:48:24 -0400
committerBrett Cannon <brett@python.org>2014-08-29 15:48:24 -0400
commit8e23aa2b179274c9c1b128a8b3daf8d2e24cfd75 (patch)
treec234e08aa390be9bca941e66e508071e5e44a801 /epylint.py
parent001469c8272a235b4f62b9b5c3ee248635168ad4 (diff)
parentc2cc31874880d7f0d5bd444c6a3b17fa817e2509 (diff)
downloadpylint-python_6.tar.gz
Merge with defaultpython_6
Diffstat (limited to 'epylint.py')
-rwxr-xr-xepylint.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/epylint.py b/epylint.py
index beae481..b34ef63 100755
--- a/epylint.py
+++ b/epylint.py
@@ -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:]))