Parcourir la source

[2252] folded long line, and a bit of doc clarification

JINMEI Tatuya il y a 12 ans
Parent
commit
acbf4d8c9e
1 fichiers modifiés avec 6 ajouts et 3 suppressions
  1. 6 3
      src/bin/xfrin/xfrin.py.in

+ 6 - 3
src/bin/xfrin/xfrin.py.in

@@ -896,13 +896,16 @@ class XfrinConnection(asyncore.dispatcher):
     def _get_ipver_str(self):
         """Returns a 'v4' or 'v6' string representing a IP version
         depending on the socket family. This is for an internal use
-        only. This is supported only for IP sockets. It raises a
-        ValueError exception on other address families."""
+        only (except for tests). This is supported only for IP sockets.
+        It raises a ValueError exception on other address families.
+
+        """
         if self.socket.family == socket.AF_INET:
             return 'v4'
         elif self.socket.family == socket.AF_INET6:
             return 'v6'
-        raise ValueError("Invalid address family. This is supported only for IP sockets")
+        raise ValueError("Invalid address family. "
+                         "This is supported only for IP sockets")
 
     def _check_soa_serial(self):
         '''Send SOA query and compare the local and remote serials.