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:
@ -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)
|
||||
|
Reference in New Issue
Block a user