mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Remove unused imports
These imports now live in salt.utils.gitfs.
This commit is contained in:
parent
7584f5f02a
commit
c05b22a063
@ -48,19 +48,7 @@ Walkthrough <tutorial-gitfs>`.
|
||||
|
||||
# Import python libs
|
||||
from __future__ import absolute_import
|
||||
import copy
|
||||
import distutils.version # pylint: disable=import-error,no-name-in-module
|
||||
import errno
|
||||
import fnmatch
|
||||
import glob
|
||||
import hashlib
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
import stat
|
||||
import subprocess
|
||||
from datetime import datetime
|
||||
|
||||
PER_REMOTE_PARAMS = ('base', 'mountpoint', 'root', 'ssl_verify')
|
||||
SYMLINK_RECURSE_DEPTH = 100
|
||||
@ -74,9 +62,6 @@ AUTH_PARAMS = ('user', 'password', 'pubkey', 'privkey', 'passphrase',
|
||||
import salt.utils.gitfs
|
||||
from salt.exceptions import FileserverConfigError
|
||||
|
||||
# Import third party libs
|
||||
import salt.ext.six as six
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
# Define the module's virtual name
|
||||
|
@ -163,22 +163,6 @@ try:
|
||||
HAS_GITPYTHON = True
|
||||
except ImportError:
|
||||
HAS_GITPYTHON = False
|
||||
|
||||
try:
|
||||
import pygit2
|
||||
HAS_PYGIT2 = True
|
||||
except ImportError:
|
||||
HAS_PYGIT2 = False
|
||||
|
||||
try:
|
||||
import dulwich.errors
|
||||
import dulwich.repo
|
||||
import dulwich.client
|
||||
import dulwich.config
|
||||
import dulwich.objects
|
||||
HAS_DULWICH = True
|
||||
except ImportError:
|
||||
HAS_DULWICH = False
|
||||
# pylint: enable=import-error
|
||||
|
||||
PER_REMOTE_PARAMS = ('env', 'root', 'ssl_verify')
|
||||
|
Loading…
Reference in New Issue
Block a user