summaryrefslogtreecommitdiff
path: root/src/leap/mx/tcp_map.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2015-04-17 16:35:58 -0300
committerdrebs <drebs@leap.se>2015-04-20 16:53:25 -0300
commit62def16809c1cf739db5a7a8e7aa24fec70fdf5d (patch)
treeea5f5e4f16508165838c8cd9a7f2ba168b751599 /src/leap/mx/tcp_map.py
parent3353e2bccb2625ae06472721cfbb8cf53144a255 (diff)
[doc] update documentation
I'm updating (1) some very outdated doc from when the program was not yet written, and (2) some small stuff inside classes docstrings.
Diffstat (limited to 'src/leap/mx/tcp_map.py')
-rw-r--r--src/leap/mx/tcp_map.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/leap/mx/tcp_map.py b/src/leap/mx/tcp_map.py
index 108c2aa..597c830 100644
--- a/src/leap/mx/tcp_map.py
+++ b/src/leap/mx/tcp_map.py
@@ -30,6 +30,10 @@ TCP_MAP_CODE_TEMPORARY_FAILURE = 400
TCP_MAP_CODE_PERMANENT_FAILURE = 500
+# we have to also extend from object here to make the class a new-style class.
+# If we don't, we get a TypeError because "new-style classes can't have only
+# classic bases". This has to do with the way abc.ABCMeta works and the old
+# and new style of python classes.
class LEAPPostfixTCPMapServerFactory(ServerFactory, object):
"""
A factory for postfix tcp map servers.