def load(self):
        self.entries = []
        with open(self.filename, 'r') as f:
            for line in f:
                username, pwhash = line.split(':')
                entry = [username, pwhash.rstrip()]
                self.entries.append(entry)
Read the htpasswd file into memory.
dataset/ETHPy150Open edgewall/trac/contrib/htpasswd.py/HtpasswdFile.load