r47155 - improved docstring for twistedchecker
glyph-TA+aISz0psMTMxyoc4vAAJOcrHinNvQL0E9HWUfgJXw@public.gmane.org Tue, 5 Apr 2016 14:59:32 -0600 (MDT)
| Newsgroups | gmane.comp.python.twisted.commits |
|---|---|
| Message-ID | <[email protected]> |
Author: glyph
Date: Tue Apr 5 14:59:28 2016
New Revision: 47155
Modified:
branches/haproxy-endpoint-8203-2/twisted/protocols/haproxy/_v2parser.py
Log:
improved docstring for twistedchecker
Modified: branches/haproxy-endpoint-8203-2/twisted/protocols/haproxy/_v2parser.py
==============================================================================
--- branches/haproxy-endpoint-8203-2/twisted/protocols/haproxy/_v2parser.py (original)
+++ branches/haproxy-endpoint-8203-2/twisted/protocols/haproxy/_v2parser.py Tue Apr 5 14:59:28 2016
@@ -96,7 +96,14 @@
@staticmethod
def _bytesToIPv4(bytestring):
"""
- Convert a bytestring to an IPv4 representation.
+ Convert packed 32-bit IPv4 address bytes into a dotted-quad ASCII bytes
+ representation of that address.
+
+ @param bytestring: 4 octets representing an IPv4 address.
+ @type bytestring: L{bytes}
+
+ @return: a dotted-quad notation IPv4 address.
+ @rtype: L{bytes}
"""
return b'.'.join(
('%i' % ord(b)).encode('ascii')