MCPcopy Index your code
hub / github.com/pyload/pyload / cleanTree

Method cleanTree

pyLoadCore.py:260–270  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

258
259
260 def cleanTree(self):
261 for path, dirs, files in walk(self.path("")):
262 for f in files:
263 if not f.endswith(".pyo") and not f.endswith(".pyc"):
264 continue
265
266 if "_25" in f or "_26" in f or "_27" in f:
267 continue
268
269 print join(path, f)
270 remove(join(path, f))
271
272 def start(self, rpc=True, web=True):
273 """ starts the fun :D """

Callers 1

__init__Method · 0.95

Calls 2

pathMethod · 0.95
removeFunction · 0.85

Tested by

no test coverage detected