changeset 1:750dc780d3d8

stub a diff method; really, i have no idea what im doing
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 16 Jun 2011 16:50:26 -0700
parents 8bd0c3b2163e
children 20dde2687cfb
files urlmatch/__init__.py
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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!