mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Logging documentation updates.
This commit is contained in:
parent
5e9b14c39e
commit
689b68ad2d
3 changed files with 48 additions and 47 deletions
|
|
@ -8,8 +8,6 @@ Logging Cookbook
|
|||
|
||||
This page contains a number of recipes related to logging, which have been found useful in the past.
|
||||
|
||||
.. Contents::
|
||||
|
||||
.. currentmodule:: logging
|
||||
|
||||
Using logging in multiple modules
|
||||
|
|
@ -249,7 +247,8 @@ configuration::
|
|||
#!/usr/bin/env python
|
||||
import socket, sys, struct
|
||||
|
||||
data_to_send = open(sys.argv[1], 'r').read()
|
||||
with open(sys.argv[1], 'rb') as f:
|
||||
data_to_send = f.read()
|
||||
|
||||
HOST = 'localhost'
|
||||
PORT = 9999
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue