Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4)

Unified Diff: Lib/cgi.py

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/binhex.py ('k') | Lib/cgitb.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/cgi.py Tue Jul 26 09:37:46 2011 +0300
+++ b/Lib/cgi.py Mon Jul 25 09:47:18 2011 -0400
@@ -76,7 +76,7 @@
send an error message).
"""
- global log, logfile, logfp
+ global logfp, log
if logfile and not logfp:
try:
logfp = open(logfile, "a")
@@ -96,15 +96,6 @@
"""Dummy function, assigned to log when logging is disabled."""
pass
-def closelog():
- """Close the log file."""
- global log, logfile, logfp
- logfile = ''
- if logfp:
- logfp.close()
- logfp = None
- log = initlog
-
log = initlog # The current logging function
« no previous file with comments | « Lib/binhex.py ('k') | Lib/cgitb.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+