Skip to content

Instantly share code, notes, and snippets.

@ssato
Last active November 27, 2016 16:16
Show Gist options
  • Save ssato/ca4b94f2679e25025cb8241c71912471 to your computer and use it in GitHub Desktop.
Save ssato/ca4b94f2679e25025cb8241c71912471 to your computer and use it in GitHub Desktop.
In [13]: sys.modules["yaml"] = None
In [14]: import anyconfig.backends
In [15]: anyconfig.backends.list_types()
Out[15]:
['bson',
'configobj',
'ini',
'json',
'msgpack',
'properties',
'shellvars',
'toml',
'xml']
In [16]: import yaml
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-18-fc3d1333bd52> in <module>()
----> 1 import yaml
ImportError: No module named yaml
In [17]: del sys.modules["yaml"]
In [18]: import yaml
In [19]:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment