[tor-commits] [stem/master] Conforming to E303 (too many blank lines)

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


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

    Conforming to E303 (too many blank lines)
    
    Had an extra newline at one point. I'm starting to like this style checker
    thing...
---
 stem/descriptor/extrainfo_descriptor.py |    1 -
 test/check_whitespace.py                |    2 +-
 2 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/stem/descriptor/extrainfo_descriptor.py b/stem/descriptor/extrainfo_descriptor.py
index 8ad10e1..284681b 100644
--- a/stem/descriptor/extrainfo_descriptor.py
+++ b/stem/descriptor/extrainfo_descriptor.py
@@ -524,7 +524,6 @@ class ExtraInfoDescriptor(stem.descriptor.Descriptor):
         key_type = "STATUS" if is_response_stats else "STAT"
         error_msg = "%s lines should contain %s=COUNT mappings: %s" % (keyword, key_type, line)
         
-        
         if value:
           for entry in value.split(","):
             if not "=" in entry:
diff --git a/test/check_whitespace.py b/test/check_whitespace.py
index 7b7a181..dacd594 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,E502,E303"
+  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,E502"
   
   issues = {}
   pep8_output = system.call("pep8 --ignore %s %s" % (ignored_issues, base_path))





More information about the tor-commits mailing list