mirror of
https://github.com/amix/vimrc
synced 2025-07-04 23:15:01 +08:00
Replace distutils with shutil
This commit is contained in:
@ -11,9 +11,9 @@ import shutil
|
||||
import tempfile
|
||||
import urllib.request
|
||||
import zipfile
|
||||
from distutils.dir_util import copy_tree
|
||||
from io import BytesIO
|
||||
from os import path
|
||||
from shutil import copytree
|
||||
|
||||
# --- Globals ----------------------------------------------
|
||||
PLUGINS = """
|
||||
@ -107,7 +107,7 @@ if __name__ == "__main__":
|
||||
temp_directory = tempfile.mkdtemp()
|
||||
|
||||
if not path.isdir(SOURCE_DIR):
|
||||
copy_tree(FALLBACK_SOURCE_DIR, SOURCE_DIR)
|
||||
copytree(FALLBACK_SOURCE_DIR, SOURCE_DIR)
|
||||
|
||||
try:
|
||||
if futures:
|
||||
|
Reference in New Issue
Block a user