clean up module import ordering and drop pylint-1.7 workaround
Now that we're on pylint-1.9, we can drop the warning disable for
bad module ordering.
BUG=chromium:1015273
TEST=`cros lint` is clean
Change-Id: I4ac5c956454649a18d8e6faa216b02163b5922e4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/1878008
Reviewed-by: Michael Mortensen <mmortensen@google.com>
Tested-by: Mike Frysinger <vapier@chromium.org>
diff --git a/api/validate.py b/api/validate.py
index f3659b8..f45dd47 100644
--- a/api/validate.py
+++ b/api/validate.py
@@ -16,14 +16,11 @@
import functools
import os
+from google.protobuf import message as protobuf_message
+
from chromite.lib import cros_build_lib
from chromite.lib import cros_logging as logging
-# TODO(vapier): Re-enable check once we upgrade to pylint-1.8+.
-# pylint: disable=no-name-in-module
-from google.protobuf import message as protobuf_message
-# pylint: enable=no-name-in-module
-
def _value(field, message):
"""Helper function to fetch the value of the field.