MCPcopy Create free account
hub / github.com/mongodb/motor / patch_spec

Method patch_spec

synchro/synchrotest.py:251–256  ·  view source on GitHub ↗
(self, fullname)

Source from the content-addressed store, hash-verified

249
250class SynchroModuleLoader(importlib.abc.Loader):
251 def patch_spec(self, fullname):
252 parts = fullname.split(".")
253 if ("pymongo" in parts or "gridfs" in parts) and "asynchronous" not in parts:
254 return True
255
256 return False
257
258 def exec_module(self, module):
259 pass

Callers 2

create_moduleMethod · 0.95
find_specMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected