Mercurial > hg > urlmatch
comparison urlmatch.py @ 4:23be092e6099
make this executable
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 17 Jun 2011 10:40:51 -0700 |
parents | 00266c7a7c3c |
children | 0cd69fa6751c |
comparison
equal
deleted
inserted
replaced
3:00266c7a7c3c | 4:23be092e6099 |
---|---|
1 #!/usr/bin/env python | |
2 | |
1 import urlparse | 3 import urlparse |
2 | 4 |
3 class UrlMatcher(object): | 5 class UrlMatcher(object): |
6 """match urls""" | |
4 | 7 |
5 def __init__(self, *urls): | 8 def __init__(self, *urls): |
6 match_order=('domain', 'scheme', 'path') | 9 match_order=('domain', 'scheme', 'path') |
7 self.order = match_order | 10 self.order = match_order |
8 self.urls = {} | 11 self.urls = {} |