[pylint] Fix lintstack.py for python2.x

tools/lintstack.py helper is used to run
pylint on manila in all branches prior to
the Stein release. In some downstream testing
with python2.x, it was found to be using a
version of the print() function available only
in python3x.

We can enable the python3 style print function
from __future__. See [1] for how this import
is dealt with.

[1] https://docs.python.org/2/reference/simple_stmts.html#future

Depends-on: https://review.openstack.org/642715
Change-Id: I41c93ef6c0472ae4293a733bb0ea99511a686440
This commit is contained in:
Goutham Pacha Ravi 2019-03-11 11:48:03 -07:00 committed by Tom Barron
parent f010c35fd3
commit c9f581caeb
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,8 @@
"""pylint error checking."""
from __future__ import print_function
import json
import re
import sys