Browse Source

Merge pull request #7432 from thinkerou/fix_undefined_name

Fix undefined name found by pyflakes.
Nathaniel Manista 8 years ago
parent
commit
87562c83e4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/python/grpcio_tests/commands.py

+ 2 - 2
src/python/grpcio_tests/commands.py

@@ -28,7 +28,7 @@
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 """Provides distutils command classes for the gRPC Python setup process."""
 """Provides distutils command classes for the gRPC Python setup process."""
 
 
-import distutils
+from distutils import errors as _errors
 import glob
 import glob
 import os
 import os
 import os.path
 import os.path
@@ -186,7 +186,7 @@ class RunInterop(test.test):
 
 
     def finalize_options(self):
     def finalize_options(self):
         if self.client and self.server:
         if self.client and self.server:
-            raise DistutilsOptionError(
+            raise _errors.DistutilsOptionError(
                 'you may only specify one of client or server')
                 'you may only specify one of client or server')
 
 
     def run(self):
     def run(self):