From: Martin Panter Date: Sun, 20 Nov 2016 23:06:58 +0000 (+0000) Subject: Issue #28666: Fix stat import X-Git-Tag: v2.7.13rc1~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=398bc765750386a25a280c329d61578ad665add9;p=python Issue #28666: Fix stat import --- diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index 52226333a6..e084f3ba04 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -8,6 +8,7 @@ import errno import functools import gc import socket +import stat import sys import os import platform @@ -248,7 +249,6 @@ else: _rmdir = os.rmdir def _rmtree(path): - import stat try: shutil.rmtree(path) return