mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #45719 from bdrung/fix-python3-sphinx-build
Fix python3 sphinx build
This commit is contained in:
commit
272f912c7c
2 changed files with 3 additions and 1 deletions
|
@ -46,6 +46,8 @@ class Mock(object):
|
|||
data = self.__mapping.get(name)
|
||||
elif name in ('__file__', '__path__'):
|
||||
data = '/dev/null'
|
||||
elif name == '__qualname__':
|
||||
raise AttributeError("'Mock' object has no attribute '__qualname__'")
|
||||
else:
|
||||
data = Mock(mapping=self.__mapping)
|
||||
return data
|
||||
|
|
|
@ -30,7 +30,7 @@ warnings.simplefilter('always', category=DuplicateKeyWarning)
|
|||
|
||||
|
||||
# with code integrated from https://gist.github.com/844388
|
||||
class SaltYamlSafeLoader(yaml.SafeLoader, object):
|
||||
class SaltYamlSafeLoader(yaml.SafeLoader):
|
||||
'''
|
||||
Create a custom YAML loader that uses the custom constructor. This allows
|
||||
for the YAML loading defaults to be manipulated based on needs within salt
|
||||
|
|
Loading…
Add table
Reference in a new issue