Created
November 1, 2016 02:17
-
-
Save gsnedders/1208666ce1bf141e07578168aa5b3647 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
class Test(object): | |
def find_module(self, fullname, path=None): | |
print('finder looking for %r with path %r' % (fullname, path)) | |
return None | |
def foo(): | |
sys.meta_path.append(Test()) | |
def bar(): | |
import xml.etree.ElementTree | |
foo() | |
bar() |
Author
gsnedders
commented
Nov 1, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment