diff options
author | Yifei Feng <yifeif@google.com> | 2018-02-06 22:05:26 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-02-06 22:09:14 -0800 |
commit | b9018073ec1afc7dfc302ab171db8bf5b177c2dd (patch) | |
tree | 2e5944c350e84f01b8062e010fad94f5c5345d47 /tensorflow/examples | |
parent | 2ec89055c17cd17dc1b1259d9eb76d1177c9b0e8 (diff) |
Add pylint check for W0611 unused-import in ci_sanity.sh and fix existing pylint errors.
PiperOrigin-RevId: 184790548
Diffstat (limited to 'tensorflow/examples')
-rw-r--r-- | tensorflow/examples/label_image/label_image.py | 1 | ||||
-rw-r--r-- | tensorflow/examples/tutorials/mnist/input_data.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/tensorflow/examples/label_image/label_image.py b/tensorflow/examples/label_image/label_image.py index 1c1bd57d71..fe5e0fc684 100644 --- a/tensorflow/examples/label_image/label_image.py +++ b/tensorflow/examples/label_image/label_image.py @@ -18,7 +18,6 @@ from __future__ import division from __future__ import print_function import argparse -import sys import numpy as np import tensorflow as tf diff --git a/tensorflow/examples/tutorials/mnist/input_data.py b/tensorflow/examples/tutorials/mnist/input_data.py index f1a7e1c4af..fa148ae3e6 100644 --- a/tensorflow/examples/tutorials/mnist/input_data.py +++ b/tensorflow/examples/tutorials/mnist/input_data.py @@ -18,6 +18,7 @@ from __future__ import absolute_import from __future__ import division from __future__ import print_function +# pylint: disable=unused-import import gzip import os import tempfile @@ -27,3 +28,4 @@ from six.moves import urllib from six.moves import xrange # pylint: disable=redefined-builtin import tensorflow as tf from tensorflow.contrib.learn.python.learn.datasets.mnist import read_data_sets +# pylint: enable=unused-import |