Use # noqa to ignore one line but not whole file

"# flake8: noqa" option disables all checks for the whole file.
To disable one line we should use "# noqa".

Closes Bug: #1540254

Change-Id: I34c8a2218f974cd7e78c60e9c1fec26751c4e82d
This commit is contained in:
Bo Wang 2016-02-01 20:17:47 +08:00
parent 6d023a6bc2
commit 0105fd1206
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ import ConfigParser
import os
import sys
import install_venv_common as install_venv # flake8: noqa
import install_venv_common as install_venv
def print_help(project, venv, root):
@ -42,7 +42,7 @@ def print_help(project, venv, root):
$ %(root)s/tools/with_venv.sh <your command>
"""
print help % dict(project=project, venv=venv, root=root)
print(help % dict(project=project, venv=venv, root=root))
def main(argv):