[tor-commits] [stem/master] Conforming to E271 (multiple spaces after keyword)

atagar at torproject.org atagar at torproject.org
Mon Jan 7 09:08:00 UTC 2013


commit 6bc6c231e16122e66205e8e04b849f316fa6ada7
Author: Damian Johnson <atagar at torproject.org>
Date:   Sun Jan 6 19:51:13 2013 -0800

    Conforming to E271 (multiple spaces after keyword)
    
    Caught an extra space in the ordereddict we brought in. Nice catch.
---
 stem/util/ordereddict.py |    2 +-
 test/check_whitespace.py |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/stem/util/ordereddict.py b/stem/util/ordereddict.py
index cb97874..4466097 100644
--- a/stem/util/ordereddict.py
+++ b/stem/util/ordereddict.py
@@ -119,7 +119,7 @@ class OrderedDict(dict, DictMixin):
     if isinstance(other, OrderedDict):
       if len(self) != len(other):
         return False
-      for p, q in  zip(self.items(), other.items()):
+      for p, q in zip(self.items(), other.items()):
         if p != q:
           return False
       return True
diff --git a/test/check_whitespace.py b/test/check_whitespace.py
index 50fec10..46020f8 100644
--- a/test/check_whitespace.py
+++ b/test/check_whitespace.py
@@ -47,7 +47,7 @@ def pep8_issues(base_path = DEFAULT_TARGET):
   # We're gonna trim these down by cateogry but include the pep8 checks to
   # prevent regression.
   
-  ignored_issues = "E111,E121,W293,E501,E302,E701,E251,E261,W391,E127,E241,E128,E226,E231,E202,E201,E203,E124,E211,E222,E225,E221,E126,E262,E271"
+  ignored_issues = "E111,E121,W293,E501,E302,E701,E251,E261,W391,E127,E241,E128,E226,E231,E202,E201,E203,E124,E211,E222,E225,E221,E126,E262"
   
   issues = {}
   pep8_output = system.call("pep8 --ignore %s %s" % (ignored_issues, base_path))





More information about the tor-commits mailing list