'Log some stats for the URL.  At the moment, that means extension.'

def Consume(self, url):

    if (url and url.loc):
        (scheme, netloc, path, query, frag) = urlparse.urlsplit(url.loc)
        if (not path):
            return
        if path.endswith('/'):
            if self._extensions.has_key('/'):
                self._extensions['/'] = (self._extensions['/'] + 1)
            else:
                self._extensions['/'] = 1
            return
        i = path.rfind('/')
        if (i >= 0):
            assert (i < len(path))
            path = path[i:]
        i = path.rfind('.')
        if (i > 0):
            assert (i < len(path))
            ext = path[i:].lower()
            if self._extensions.has_key(ext):
                self._extensions[ext] = (self._extensions[ext] + 1)
            else:
                self._extensions[ext] = 1
        elif self._extensions.has_key('(no    extension)'):
            self._extensions['(no    extension)'] = (self._extensions['(no    extension)'] + 1)
        else:
            self._extensions['(no    extension)'] = 1
