[Pkg-privacy-commits] [pyptlib] 39/136: Fixed indentdation of documentation strings

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:25:04 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository pyptlib.

commit d4fa787d6ff9d3ffbd67af2bf0452433b5ce02d7
Author: Brandon Wiley <brandon at blanu.net>
Date:   Wed Jul 18 15:02:32 2012 -0500

    Fixed indentdation of documentation strings
---
 src/pyptlib/client.py | 16 ++++++++--------
 src/pyptlib/config.py |  4 ++--
 src/pyptlib/server.py | 14 +++++++-------
 3 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/src/pyptlib/client.py b/src/pyptlib/client.py
index 6683f37..b240630 100644
--- a/src/pyptlib/client.py
+++ b/src/pyptlib/client.py
@@ -14,17 +14,17 @@ __docformat__ = 'restructuredtext'
 
 
 class ClientConfig(Config):
-"""
+    """
     The ClientConfig class contains a low-level API which closely follows the Tor Proposal 180: Pluggable transports for circumvention.
     This class inherits from pyptlib.config.Config and contains just the parts of the API which are specific to the client implementations of the protocol.
-"""
+    """
 
   # Public methods
 
     def __init__(self):  # throws EnvError
         """
-            Initialize the ClientConfig object.
-            This causes the state location, managed transport, and transports version to be set.
+        Initialize the ClientConfig object.
+        This causes the state location, managed transport, and transports version to be set.
         """
 
         Config.__init__(self)
@@ -49,8 +49,8 @@ class ClientConfig(Config):
         optArgs,
         ):
         """
-            Write a message to stdout specifying a supported transport
-            Takes: str, int, (str, int), [str], [str]
+        Write a message to stdout specifying a supported transport
+        Takes: str, int, (str, int), [str], [str]
         """
 
         methodLine = 'CMETHOD %s socks%s %s:%s' % (name, socksVersion,
@@ -63,8 +63,8 @@ class ClientConfig(Config):
 
     def writeMethodError(self, name, message):  # CMETHOD-ERROR
         """
-            Write a message to stdout specifying that an error occurred setting up the specified method
-            Takes: str, str
+        Write a message to stdout specifying that an error occurred setting up the specified method
+        Takes: str, str
         """
 
         self.emit('CMETHOD-ERROR %s %s' % (name, message))
diff --git a/src/pyptlib/config.py b/src/pyptlib/config.py
index 79f23a7..ce0e49a 100644
--- a/src/pyptlib/config.py
+++ b/src/pyptlib/config.py
@@ -13,10 +13,10 @@ __docformat__ = 'restructuredtext'
 
 
 class Config:
-"""
+    """
     The Config module class a low-level API which closely follows the Tor Proposal 180: Pluggable transports for circumvention.
     This class contains the parts of the API which are shared by both client and server implementations of the protocol.
-"""
+    """
     stateLocation = None  # TOR_PT_STATE_LOCATION
     managedTransportVer = []  # TOR_PT_MANAGED_TRANSPORT_VER
     transports = []  # TOR_PT_SERVER_TRANSPORTS or TOR_PT_CLIENT_TRANSPORTS
diff --git a/src/pyptlib/server.py b/src/pyptlib/server.py
index ce95bc4..bab98f3 100644
--- a/src/pyptlib/server.py
+++ b/src/pyptlib/server.py
@@ -14,10 +14,10 @@ __docformat__ = 'restructuredtext'
 
 
 class ServerConfig(Config):
-"""
+    """
     The ServerConfig class contains a low-level API which closely follows the Tor Proposal 180: Pluggable transports for circumvention.
     This class inherits from pyptlib.config.Config and contains just the parts of the API which are specific to the client implementations of the protocol.
-"""
+    """
     extendedServerPort = None  # TOR_PT_EXTENDED_SERVER_PORT
     ORPort = None  # TOR_PT_ORPORT
     serverBindAddr = {}  # TOR_PT_SERVER_BINADDR
@@ -84,15 +84,15 @@ class ServerConfig(Config):
             self.emit('SMETHOD %s %s:%s' % (name, address[0], address[1]))
 
     def writeMethodError(self, name, message):  # SMETHOD-ERROR
-    """
-        Write a message to stdout specifying that an error occurred setting up the specified method
-        Takes: str, str
-    """
+        """
+            Write a message to stdout specifying that an error occurred setting up the specified method
+            Takes: str, str
+        """
 
         self.emit('SMETHOD-ERROR %s %s' % (name, message))
 
     def writeMethodEnd(self):  # SMETHODS DONE
-    """ Write a message to stdout specifying that the list of supported transports has ended """
+        """ Write a message to stdout specifying that the list of supported transports has ended """
         self.emit('SMETHODS DONE')
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/pyptlib.git



More information about the Pkg-privacy-commits mailing list