# HG changeset patch # User Jeff Hammel # Date 1308268226 25200 # Node ID 750dc780d3d822270928e446b25e13405f04973a # Parent 8bd0c3b2163efcb9322b0a0c1d1700e6c602a7cd stub a diff method; really, i have no idea what im doing diff -r 8bd0c3b2163e -r 750dc780d3d8 urlmatch/__init__.py --- a/urlmatch/__init__.py Mon Jun 13 21:25:06 2011 -0700 +++ b/urlmatch/__init__.py Thu Jun 16 16:50:26 2011 -0700 @@ -40,6 +40,17 @@ if url not in self.urls: self.urls[url] = self.decompose(url) + def diff(self, url1, url2): + + # decompose the urls if necessary + if isinstance(url1, basestring): + url1 = self.decompose(url) + if isinstance(url2, basestring): + url2 = self.decompose(url) + + # TODO: finish + raise NotImplementedError + def match(self, url): if '://' not in url: # give a bogus scheme for urlparse. boo!