Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(411)

Unified Diff: build/android/pylib/system_properties.py

Issue 132463007: Enable presubmit pylint in build/android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase vs tot and only disabling F0401 in specific spots Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/pylib/screenshot.py ('k') | build/android/pylib/uiautomator/setup.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/system_properties.py
diff --git a/build/android/pylib/system_properties.py b/build/android/pylib/system_properties.py
index ce5d617d73b4e4c6bb23ee570d3bf89e40d5fe1d..3f16f86e77b8f19862b37187686353d8912d43ee 100644
--- a/build/android/pylib/system_properties.py
+++ b/build/android/pylib/system_properties.py
@@ -29,7 +29,8 @@ class SystemProperties(dict):
# TODO(tonyg): This can fail with no root. Verify that it succeeds.
self._adb.SendShellCommand('setprop %s "%s"' % (key, value), retry_count=3)
- def _IsStatic(self, key):
+ @staticmethod
+ def _IsStatic(key):
# TODO(tonyg): This list is conservative and could be expanded as needed.
return (key.startswith('ro.boot.') or
key.startswith('ro.build.') or
« no previous file with comments | « build/android/pylib/screenshot.py ('k') | build/android/pylib/uiautomator/setup.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698