mirror of
https://github.com/python/cpython.git
synced 2025-07-28 13:44:43 +00:00
Little cleanup
This commit is contained in:
parent
fad65594ba
commit
b678ce5aa6
2 changed files with 4 additions and 4 deletions
|
@ -36,13 +36,13 @@ except ImportError:
|
|||
import httplib # only for the default HTTP port
|
||||
from calendar import timegm
|
||||
|
||||
debug = 0 # set to true to enable debugging via the logging module
|
||||
debug = False # set to True to enable debugging via the logging module
|
||||
logger = None
|
||||
|
||||
def _debug(*args):
|
||||
global logger
|
||||
if not debug:
|
||||
return
|
||||
global logger
|
||||
if not logger:
|
||||
import logging
|
||||
logger = logging.getLogger("cookielib")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue