commit ac0d2183f04838790c64ff3194ae29f90fd4ed93 Author: Ravi Chandra Padmala neenaoffline@gmail.com Date: Mon Jul 9 09:55:38 2012 +0530
Aesthetic changes to __init__.py files
Making __all__ lists multiline when they're long and awkward. --- stem/__init__.py | 12 +++++++++++- stem/descriptor/__init__.py | 9 ++++++++- stem/response/__init__.py | 10 +++++++++- stem/util/__init__.py | 11 ++++++++++- test/__init__.py | 7 ++++++- test/integ/__init__.py | 10 +++++++++- test/unit/__init__.py | 8 +++++++- 7 files changed, 60 insertions(+), 7 deletions(-)
diff --git a/stem/__init__.py b/stem/__init__.py index 8f5add1..a2f00a1 100644 --- a/stem/__init__.py +++ b/stem/__init__.py @@ -8,5 +8,15 @@ __contact__ = 'atagar@torproject.org' __url__ = 'http://www.atagar.com/stem/' __license__ = 'LGPLv3'
-__all__ = ["descriptor", "response", "util", "connection", "control", "prereq", "process", "socket", "version"] +__all__ = [ + "descriptor", + "response", + "util", + "connection", + "control", + "prereq", + "process", + "socket", + "version" +]
diff --git a/stem/descriptor/__init__.py b/stem/descriptor/__init__.py index 4bddbc5..2328bf5 100644 --- a/stem/descriptor/__init__.py +++ b/stem/descriptor/__init__.py @@ -12,7 +12,14 @@ Package for parsing and processing descriptor data. +- __str__ - string that the descriptor was made from """
-__all__ = ["descriptor", "reader", "extrainfo_descriptor", "server_descriptor", "parse_file", "Descriptor"] +__all__ = [ + "descriptor", + "reader", + "extrainfo_descriptor", + "server_descriptor", + "parse_file", + "Descriptor" +]
import os import re diff --git a/stem/response/__init__.py b/stem/response/__init__.py index 1d96988..995cc69 100644 --- a/stem/response/__init__.py +++ b/stem/response/__init__.py @@ -25,7 +25,15 @@ Parses replies from the control socket.
from __future__ import with_statement
-__all__ = ["getinfo", "getconf", "protocolinfo", "authchallenge", "convert", "ControlMessage", "ControlLine"] +__all__ = [ + "getinfo", + "getconf", + "protocolinfo", + "authchallenge", + "convert", + "ControlMessage", + "ControlLine" +]
import re import threading diff --git a/stem/util/__init__.py b/stem/util/__init__.py index 5f6bb24..6bc70e4 100644 --- a/stem/util/__init__.py +++ b/stem/util/__init__.py @@ -2,5 +2,14 @@ Utility functions used by the stem library. """
-__all__ = ["conf", "connection", "enum", "log", "proc", "system", "term", "tor_tools"] +__all__ = [ + "conf", + "connection", + "enum", + "log", + "proc", + "system", + "term", + "tor_tools" +]
diff --git a/test/__init__.py b/test/__init__.py index eb03299..adb29e4 100644 --- a/test/__init__.py +++ b/test/__init__.py @@ -2,5 +2,10 @@ Unit and integration tests for the stem library. """
-__all__ = ["check_whitespace", "mocking", "output", "runner"] +__all__ = [ + "check_whitespace", + "mocking", + "output", + "runner" +]
diff --git a/test/integ/__init__.py b/test/integ/__init__.py index a9bb9ef..ec9d1ca 100644 --- a/test/integ/__init__.py +++ b/test/integ/__init__.py @@ -2,5 +2,13 @@ Integration tests for the stem library. """
-__all__ = ["connection", "control", "descriptor", "process", "socket", "util", "version"] +__all__ = [ + "connection", + "control", + "descriptor", + "process", + "socket", + "util", + "version" +]
diff --git a/test/unit/__init__.py b/test/unit/__init__.py index e3dbe9a..6c77f6f 100644 --- a/test/unit/__init__.py +++ b/test/unit/__init__.py @@ -2,5 +2,11 @@ Unit tests for the stem library. """
-__all__ = ["connection", "descriptor", "socket", "util", "version"] +__all__ = [ + "connection", + "descriptor", + "socket", + "util", + "version" +]
tor-commits@lists.torproject.org