[tor-commits] [stem/master] Conforming to E126 (continuation line over-indented for hanging indent)

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


commit 23b6ffd899370f3076a845c7de4bc92220a49eaa
Author: Damian Johnson <atagar at torproject.org>
Date:   Sun Jan 6 20:01:28 2013 -0800

    Conforming to E126 (continuation line over-indented for hanging indent)
    
    Ok, I haven't a clue what the hell this one was about. In one spot pep8
    complained about the hanging indent. However, it looks right to me. For some
    odd reason it wants the hanging indent to match the
    'stem.descriptor.networkstatus' import above - maybe this is a bug with pep8.
    
    Oh well. Changing our code to shut it up.
---
 test/check_whitespace.py                          |    2 +-
 test/unit/descriptor/networkstatus/document_v3.py |    5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/test/check_whitespace.py b/test/check_whitespace.py
index 0f63dfc..06e5560 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"
+  ignored_issues = "E111,E121,W293,E501,E302,E701,E251,E261,W391,E127,E241,E128,E226,E231,E202,E201,E203,E124,E211,E222,E225,E221"
   
   issues = {}
   pep8_output = system.call("pep8 --ignore %s %s" % (ignored_issues, base_path))
diff --git a/test/unit/descriptor/networkstatus/document_v3.py b/test/unit/descriptor/networkstatus/document_v3.py
index 000a614..009d365 100644
--- a/test/unit/descriptor/networkstatus/document_v3.py
+++ b/test/unit/descriptor/networkstatus/document_v3.py
@@ -20,8 +20,9 @@ from stem.descriptor.networkstatus import HEADER_STATUS_DOCUMENT_FIELDS, \
                                           NetworkStatusDocumentV3, \
                                           parse_file
 
-from stem.descriptor.router_status_entry import RouterStatusEntryV3, \
-                                                RouterStatusEntryMicroV3
+from stem.descriptor.router_status_entry import \
+                                          RouterStatusEntryV3, \
+                                          RouterStatusEntryMicroV3
 
 from test.mocking import support_with, \
                          get_router_status_entry_v3, \





More information about the tor-commits mailing list