[Pkg-privacy-commits] [pyptlib] 42/136: Added getORPort to API, fixed some typos
Ximin Luo
infinity0 at moszumanska.debian.org
Sat Aug 22 13:25:05 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 d018d1763a0268caf543377fc8ac880564cf35bb
Author: Brandon Wiley <brandon at blanu.net>
Date: Wed Aug 29 18:40:29 2012 -0500
Added getORPort to API, fixed some typos
---
src/examples/client.py | 2 +-
src/examples/server.py | 2 +-
src/pyptlib/easy/server.py | 3 +++
3 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/examples/client.py b/src/examples/client.py
index e3e2e5c..8e882eb 100755
--- a/src/examples/client.py
+++ b/src/examples/client.py
@@ -3,7 +3,7 @@
""" This is an example client which shows how to call the pyptlib.easy high-level API. """
-from pyptlib.easy.client import init, reportSucess, reportFailure, \
+from pyptlib.easy.client import init, reportSuccess, reportFailure, \
reportEnd
diff --git a/src/examples/server.py b/src/examples/server.py
index b4e686c..0217356 100755
--- a/src/examples/server.py
+++ b/src/examples/server.py
@@ -3,7 +3,7 @@
""" This is an example server which shows how to call the pyptlib.easy high-level API. """
-from pyptlib.easy.server import init, reportSucess, reportFailure, \
+from pyptlib.easy.server import init, reportSuccess, reportFailure, \
reportEnd
diff --git a/src/pyptlib/easy/server.py b/src/pyptlib/easy/server.py
index d82dc39..5abc0ac 100644
--- a/src/pyptlib/easy/server.py
+++ b/src/pyptlib/easy/server.py
@@ -34,6 +34,9 @@ def init(transports):
return matchedTransports
+def getORPort():
+ config = ServerConfig()
+ return config.ORPort
def reportSuccess(name, address, options):
"""
--
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