Since we recommend one module per import line, reflect this also in the
documentation.
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index 8226661..554318a 100644
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -1347,7 +1347,8 @@
 the receiving end. A simple way of doing this is attaching a
 :class:`SocketHandler` instance to the root logger at the sending end::
 
-   import logging, logging.handlers
+   import logging
+   import logging.handlers
 
    rootLogger = logging.getLogger('')
    rootLogger.setLevel(logging.DEBUG)
@@ -2600,7 +2601,9 @@
 configuration::
 
     #!/usr/bin/env python
-    import socket, sys, struct
+    import socket
+    import struct
+    import sys
 
     data_to_send = open(sys.argv[1], "r").read()