Fix pylint presubmit errors and warnings from untouched modules.

BUG=None

Change-Id: I619dab14875e19477beb8bfb566ed1f34009c025
Reviewed-on: https://webrtc-review.googlesource.com/85960
Reviewed-by: Oleh Prypin <oprypin@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Artem Titov <titovartem@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23754}
This commit is contained in:
Artem Titov
2018-06-27 10:31:23 +02:00
committed by Commit Bot
parent d9711098b0
commit 81f5197512
6 changed files with 5 additions and 7 deletions

View File

@ -103,9 +103,9 @@ def _RunNinja(output_directory, args):
def _EncodeForGN(value):
"""Encodes value as a GN literal."""
if type(value) is str:
if isinstance(value, str):
return '"' + value + '"'
elif type(value) is bool:
elif isinstance(value, bool):
return repr(value).lower()
else:
return repr(value)