A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/attachments/20051112/ab1cb332/svncheck.py below:

import os, xml.dom.minidom, md5 def checkdir(arg, path, files): if not path.endswith(".svn"): return # avoid further traversal files[:] = [] entries = xml.dom.minidom.parse(os.path.join(path, "entries")) for e in entries.getElementsByTagName("entry"): if e.getAttribute("kind") != "file": continue name = e.getAttribute("name")+".svn-base" digest = md5.md5() digest.update(open(os.path.join(path, "text-base", name)).read()) if digest.hexdigest() != e.getAttribute("checksum"): print "Checksum difference in", path, name os.path.walk(".", checkdir, None)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4