]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
trivial: remove trailing whitespace and unused import
authorZooko O'Whielacronx <zooko@zooko.com>
Sun, 12 Apr 2009 02:17:42 +0000 (19:17 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Sun, 12 Apr 2009 02:17:42 +0000 (19:17 -0700)
src/allmydata/test/test_dirnode.py
src/allmydata/web/directory.py

index 25e8c465b31f5bf694e505849f134a73fac337b1..6cd80ecd2c8b55f447394dbe23bdbc3689284428 100644 (file)
@@ -479,7 +479,7 @@ class Dirnode(unittest.TestCase,
                                                 {"key": "value"}))
             d.addCallback(lambda res: n.get_metadata_for(u"c4"))
             d.addCallback(lambda metadata:
-                              self.failUnless((set(metadata.keys()) == set(["key", "tahoe"])) and 
+                              self.failUnless((set(metadata.keys()) == set(["key", "tahoe"])) and
                                               (metadata['key'] == "value"), metadata))
 
             d.addCallback(lambda res: n.delete(u"c2"))
@@ -511,7 +511,7 @@ class Dirnode(unittest.TestCase,
                                                 {"key": "value"}))
             d.addCallback(lambda res: n.get_metadata_for(u"d4"))
             d.addCallback(lambda metadata:
-                          self.failUnless((set(metadata.keys()) == set(["key", "tahoe"])) and 
+                          self.failUnless((set(metadata.keys()) == set(["key", "tahoe"])) and
                                           (metadata['key'] == "value"), metadata))
 
             d.addCallback(lambda res: n.delete(u"d2"))
@@ -539,11 +539,11 @@ class Dirnode(unittest.TestCase,
                           self.failUnlessEqual(set(metadata.keys()),
                                                set(["tahoe", "ctime", "mtime"])))
             d.addCallback(lambda res: n.get_metadata_for(u"e2"))
-            d.addCallback(lambda metadata: 
+            d.addCallback(lambda metadata:
                           self.failUnlessEqual(set(metadata.keys()), set(['tahoe'])))
             d.addCallback(lambda res: n.get_metadata_for(u"e3"))
             d.addCallback(lambda metadata:
-                              self.failUnless((set(metadata.keys()) == set(["key", "tahoe"])) 
+                              self.failUnless((set(metadata.keys()) == set(["key", "tahoe"]))
                                               and (metadata['key'] == "value"), metadata))
 
             d.addCallback(lambda res: n.delete(u"e1"))
@@ -575,7 +575,7 @@ class Dirnode(unittest.TestCase,
                 lambda metadata: self.failUnlessEqual(set(metadata.keys()), set(['tahoe'])))
             d.addCallback(lambda res: n.get_metadata_for(u"f3"))
             d.addCallback(lambda metadata:
-                              self.failUnless((set(metadata.keys()) == set(["key", "tahoe"])) and 
+                              self.failUnless((set(metadata.keys()) == set(["key", "tahoe"])) and
                                               (metadata['key'] == "value"), metadata))
 
             d.addCallback(lambda res: n.delete(u"f1"))
@@ -683,7 +683,7 @@ class Dirnode(unittest.TestCase,
                           self.failUnless(IFileNode.providedBy(newnode)))
             d.addCallback(lambda res: n.get_metadata_for(u"newfile-metadata"))
             d.addCallback(lambda metadata:
-                              self.failUnless((set(metadata.keys()) == set(["key", "tahoe"])) and 
+                              self.failUnless((set(metadata.keys()) == set(["key", "tahoe"])) and
                                               (metadata['key'] == "value"), metadata))
             d.addCallback(lambda res: n.delete(u"newfile-metadata"))
 
index e2fb1c1e32fc2daa0dde8bb89b50a894916ebe43..8da7a33fe2f8918fc07335459568391c81720459 100644 (file)
@@ -1,7 +1,6 @@
 
 import simplejson
 import urllib
-import time
 
 from zope.interface import implements
 from twisted.internet import defer