[tor-commits] [stem/master] Correcting whitespace

atagar at torproject.org atagar at torproject.org
Mon Apr 16 01:37:20 UTC 2012


commit 22965e5c209ecc7b924093757e7e75767ea82379
Author: Damian Johnson <atagar at torproject.org>
Date:   Sun Apr 15 18:36:35 2012 -0700

    Correcting whitespace
    
    Fixing the mistakes caught by my neat new whitespace checker.
---
 test/integ/util/conf.py                   |    2 +-
 test/mocking.py                           |    2 +-
 test/unit/descriptor/reader.py            |    4 ++--
 test/unit/descriptor/server_descriptor.py |    2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/test/integ/util/conf.py b/test/integ/util/conf.py
index 12d31b8..13d0579 100644
--- a/test/integ/util/conf.py
+++ b/test/integ/util/conf.py
@@ -105,7 +105,7 @@ class TestConf(unittest.TestCase):
     test_config_path = _make_config(MULTILINE_CONF)
     test_config = stem.util.conf.get_config("integ_testing")
     test_config.load(test_config_path)
-        
+    
     for entry in ("simple", "leading_whitespace", "squashed_top", "squashed_bottom"):
       self.assertEquals("la de da\nand a ho hum", test_config.get("multiline.entry.%s" % entry))
     
diff --git a/test/mocking.py b/test/mocking.py
index 62e04c9..aa61c76 100644
--- a/test/mocking.py
+++ b/test/mocking.py
@@ -220,7 +220,7 @@ def get_protocolinfo_response(**attributes):
   left with the default.
   
   Arguments:
-    attributes (dict) - attributes to customize the the 
+    attributes (dict) - attributes to customize the response with
   
   Returns:
     stem.connection.ProtocolInfoResponse instance
diff --git a/test/unit/descriptor/reader.py b/test/unit/descriptor/reader.py
index cf11c23..2d7df10 100644
--- a/test/unit/descriptor/reader.py
+++ b/test/unit/descriptor/reader.py
@@ -71,7 +71,7 @@ class TestDescriptorReader(unittest.TestCase):
     mocking.support_with(test_content)
     mocking.mock(open, mocking.return_value(test_content))
     self.assertRaises(TypeError, stem.descriptor.reader.load_processed_files, "")
-
+  
   def test_load_processed_files_malformed_file(self):
     """
     Tests the load_processed_files() function content that is malformed because
@@ -82,7 +82,7 @@ class TestDescriptorReader(unittest.TestCase):
     mocking.support_with(test_content)
     mocking.mock(open, mocking.return_value(test_content))
     self.assertRaises(TypeError, stem.descriptor.reader.load_processed_files, "")
-
+  
   def test_load_processed_files_malformed_timestamp(self):
     """
     Tests the load_processed_files() function content that is malformed because
diff --git a/test/unit/descriptor/server_descriptor.py b/test/unit/descriptor/server_descriptor.py
index 90d448e..fceb773 100644
--- a/test/unit/descriptor/server_descriptor.py
+++ b/test/unit/descriptor/server_descriptor.py
@@ -331,7 +331,7 @@ class TestServerDescriptor(unittest.TestCase):
   
   def test_bridge_unsanitized(self):
     """
-    Targeted check that individual unsanitized attributes will be detected. 
+    Targeted check that individual unsanitized attributes will be detected.
     """
     
     unsanitized_attr = [



More information about the tor-commits mailing list