MCPcopy Index your code
hub / github.com/ronreiter/interactive-tutorials / checkversion

Method checkversion

suds/cache.py:280–292  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

278 return open(fn, *args)
279
280 def checkversion(self):
281 path = os.path.join(self.location, 'version')
282 try:
283 f = self.open(path, 'rt')
284 version = f.read()
285 f.close()
286 if version != suds.__version__:
287 raise Exception()
288 except:
289 self.clear()
290 f = self.open(path, 'wt')
291 f.write(suds.__version__)
292 f.close()
293
294 def __fn(self, id):
295 name = id

Callers 1

__init__Method · 0.95

Calls 2

openMethod · 0.95
clearMethod · 0.95

Tested by

no test coverage detected