[Pkg-privacy-commits] [pyptlib] 03/136: Added missing self parameters to everything
Ximin Luo
infinity0 at moszumanska.debian.org
Sat Aug 22 13:24:59 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 889ca9f7d4d9ef5a73df8451ba3eb5e03d1d6a0e
Author: Brandon Wiley <brandon at blanu.net>
Date: Wed May 23 17:20:48 2012 -0500
Added missing self parameters to everything
---
src/pyptlib/client.py | 8 ++++----
src/pyptlib/config.py | 8 ++++----
src/pyptlib/server.py | 26 +++++++++++++-------------
3 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/src/pyptlib/client.py b/src/pyptlib/client.py
index 383de56..474a7f2 100644
--- a/src/pyptlib/client.py
+++ b/src/pyptlib/client.py
@@ -5,19 +5,19 @@ class ClientConfig(Config):
Config.__init__(self)
# Returns a list of strings representing the client transports reported by Tor. If present, '*' is stripped from this list and used to set allTransportsEnabled to True.
- def getClientTransports():
+ def getClientTransports(self):
return clientTransports
# Write a message to stdout specifying a supported transport
# Takes: str, int, (str, int), [str], [str]
- def writeMethod(name, socksVersion, address, args, optArgs): # CMETHOD
+ def writeMethod(self, name, socksVersion, address, args, optArgs): # CMETHOD
pass
# Write a message to stdout specifying that an error occurred setting up the specified method
# Takes: str, str
- def writeMethodError(name, message): # CMETHOD-ERROR
+ def writeMethodError(self, name, message): # CMETHOD-ERROR
pass
# Write a message to stdout specifying that the list of supported transports has ended
- def writeMethodEnd() # CMETHODS DONE
+ def writeMethodEnd(self) # CMETHODS DONE
pass
diff --git a/src/pyptlib/config.py b/src/pyptlib/config.py
index dfa9d29..e441132 100644
--- a/src/pyptlib/config.py
+++ b/src/pyptlib/config.py
@@ -7,20 +7,20 @@ class Config:
pass
# Returns a string representing the path to the state storage directory (which may not exist, but should be creatable) reported by Tor
- def getStateLocation():
+ def getStateLocation(self):
return stateLocation
# Returns a list of strings representing supported versions as reported by Tor
- def getManagedTransportVersions()
+ def getManagedTransportVersions(self)
return managedTransportVer
# Checks to see if the specified version is included in those reported by Tor
# Returns True if the version is included and False if it is not
- def checkManagedTransportVersion(version):
+ def checkManagedTransportVersion(self, version):
pass
# Returns a bool, True if the transport '*' was specified by Tor, otherwise False.
- def getAllTransportsEnabled():
+ def getAllTransportsEnabled(self):
return allTransportsEnabled
# Exception thrown when there is an error parsing the configuration parameters provided by Tor in environment variables
diff --git a/src/pyptlib/server.py b/src/pyptlib/server.py
index a821ee2..f21dd98 100644
--- a/src/pyptlib/server.py
+++ b/src/pyptlib/server.py
@@ -8,43 +8,43 @@ class ServerConfig(Config):
Config.__init__(self)
# Returns a tuple (str,int) representing the address of the Tor server port as reported by Tor
- def getExtendedServerPort():
+ def getExtendedServerPort(self):
return extendedServerPort
# Returns a tuple (str,int) representing the address of the Tor OR port as reported by Tor
- def getORPort():
+ def getORPort(self):
return ORPort
# Returns a dict {str: (str,int)} representing the addresses for each transport as reported by Tor
- def getServerBindAddresses():
+ def getServerBindAddresses(self):
return serverBindAddr
# Returns a list of strings representing the server transports reported by Tor. If present, '*' is stripped from this list and used to set allTransportsEnabled to True.
- def getServerTransports():
+ def getServerTransports(self):
return serverTransports
# Write a message to stdout specifying that an error parsing the environment variables has occurred
# Takes: str
- def writeEnvError(message): # ENV-ERROR
+ def writeEnvError(self, message): # ENV-ERROR
pass
# Write a message to stdout specifying that the specified configuration protocol version is supported
# Takes: str
- def writeVersion(version): # VERSION
+ def writeVersion(self, version): # VERSION
pass
# Write a message to stdout specifying a supported transport
# Takes: str, (str, int), MethodOptions
- def writeMethod(name, address, options): # SMETHOD
+ def writeMethod(self, name, address, options): # SMETHOD
pass
# Write a message to stdout specifying that an error occurred setting up the specified method
# Takes: str, str
- def writeMethodError(name, message): # SMETHOD-ERROR
+ def writeMethodError(self, name, message): # SMETHOD-ERROR
pass
# Write a message to stdout specifying that the list of supported transports has ended
- def writeMethodEnd() # SMETHODS DONE
+ def writeMethodEnd(self) # SMETHODS DONE
pass
class MethodOptions:
@@ -57,17 +57,17 @@ class MethodOptions:
pass
# Sets forward to True
- def setForward()
+ def setForward(self)
pass
# Adds a key-value pair to args
- def addArg(key, value):
+ def addArg(self, key, value):
pass
# Adds a key-value pair to declare
- def addDeclare(key, value):
+ def addDeclare(self, key, value):
pass
# Sets useExtendedPort to True
- def setUserExtendedPort()
+ def setUserExtendedPort(self)
pass
--
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