~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to bzrtools.py

  • Committer: Aaron Bentley
  • Date: 2007-08-14 19:25:30 UTC
  • Revision ID: abentley@panoramicfeedback.com-20070814192530-llvs6szu4q3ozl1h
Branches  works with Apache again

Show diffs side-by-side

added added

removed removed

Lines of Context:
294
294
    """Screen-scrape Apache listings"""
295
295
    apache_dir = '<img border="0" src="/icons/folder.gif" alt="[dir]">'\
296
296
        ' <a href="'
297
 
    lines = t.get('.')
 
297
    t = t.clone()
 
298
    t._remote_path = lambda x: t.base
 
299
    lines = t.get('')
298
300
    expr = re.compile('<a[^>]*href="([^>]*)"[^>]*>', flags=re.I)
299
301
    for line in lines:
300
302
        match = expr.search(line)