diff --git a/Lib/distutils/dir_util.py b/Lib/distutils/dir_util.py index c7c9fccfd79..5b005f0865e 100644 --- a/Lib/distutils/dir_util.py +++ b/Lib/distutils/dir_util.py @@ -5,6 +5,7 @@ Utility functions for manipulating directories and directory trees.""" __revision__ = "$Id$" import os, sys +import errno from distutils.errors import DistutilsFileError, DistutilsInternalError from distutils import log diff --git a/Lib/distutils/tests/test_sysconfig.py b/Lib/distutils/tests/test_sysconfig.py index 78bce9461fe..309be7b8b1a 100644 --- a/Lib/distutils/tests/test_sysconfig.py +++ b/Lib/distutils/tests/test_sysconfig.py @@ -1,5 +1,6 @@ """Tests for distutils.sysconfig.""" import os +import shutil import test import unittest diff --git a/Misc/NEWS b/Misc/NEWS index 7794521353a..efa001865f7 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -16,6 +16,8 @@ Core and Builtins Library ------- +- Issue #10407: Fix two NameErrors in distutils. + - Issue #10198: fix duplicate header written to wave files when writeframes() is called without data.