diff options
author | Georg Brandl <georg@python.org> | 2008-02-01 11:56:49 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-02-01 11:56:49 (GMT) |
commit | f69451833191454bfef75804c2654dc37e8f3e93 (patch) | |
tree | 7e81560f5276c35f68b7b02e75feb9221a82ae5d /Doc/library/logging.rst | |
parent | f25ef50549d9f2bcb6294fe61a9902490728edcc (diff) | |
download | cpython-f69451833191454bfef75804c2654dc37e8f3e93.zip cpython-f69451833191454bfef75804c2654dc37e8f3e93.tar.gz cpython-f69451833191454bfef75804c2654dc37e8f3e93.tar.bz2 |
Update docs w.r.t. PEP 3100 changes -- patch for GHOP by Dan Finnie.
Diffstat (limited to 'Doc/library/logging.rst')
-rw-r--r-- | Doc/library/logging.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 98e2862..f466df1 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -95,7 +95,7 @@ yourself, though, it is simpler to use a :class:`RotatingFileHandler`:: logfiles = glob.glob('%s*' % LOG_FILENAME) for filename in logfiles: - print filename + print(filename) The result should be 6 separate files, each with part of the log history for the application:: @@ -2428,13 +2428,13 @@ configuration:: HOST = 'localhost' PORT = 9999 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) - print "connecting..." + print("connecting...") s.connect((HOST, PORT)) - print "sending config..." + print("sending config...") s.send(struct.pack(">L", len(data_to_send))) s.send(data_to_send) s.close() - print "complete" + print("complete") More examples |