mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
This needs discussion, since this breaks SUSE
But it does fix all other distros....
This commit is contained in:
parent
7bda166e9d
commit
6c5f363921
1 changed files with 0 additions and 9 deletions
|
@ -54,11 +54,6 @@ except ImportError:
|
|||
# Older jinja does not need markupsafe
|
||||
HAS_MARKUPSAFE = False
|
||||
|
||||
try:
|
||||
import xml
|
||||
HAS_XML = True
|
||||
except ImportError:
|
||||
HAS_XML = False
|
||||
# pylint: enable=import-error,no-name-in-module
|
||||
|
||||
try:
|
||||
|
@ -129,10 +124,6 @@ def get_tops(extra_mods='', so_mods=''):
|
|||
if HAS_SSL_MATCH_HOSTNAME:
|
||||
tops.append(os.path.dirname(os.path.dirname(ssl_match_hostname.__file__)))
|
||||
|
||||
if HAS_XML:
|
||||
# For openSUSE, which apparently doesn't include the whole stdlib
|
||||
tops.append(os.path.dirname(xml.__file__))
|
||||
|
||||
for mod in [m for m in extra_mods.split(',') if m]:
|
||||
if mod not in locals() and mod not in globals():
|
||||
try:
|
||||
|
|
Loading…
Add table
Reference in a new issue