[Python-checkins] python/dist/src/Lib threading.py,1.37,1.38
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Tue, 01 Jul 2003 13:01:57 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv19112/Lib
Modified Files:
threading.py
Log Message:
Make the classes exposed by threading.py new-style classes. This is
mostly for convenience and to aid debugging.
Index: threading.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/threading.py,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -d -r1.37 -r1.38
*** threading.py 1 Jul 2003 19:28:44 -0000 1.37
--- threading.py 1 Jul 2003 20:01:55 -0000 1.38
***************
*** 25,29 ****
! # Debug support (adapted from ihooks.py)
_VERBOSE = False
--- 25,33 ----
! # Debug support (adapted from ihooks.py).
! # All the major classes here derive from _Verbose. We force that to
! # be a new-style class so that all the major classes here are new-style.
! # This helps debugging (type(instance) is more revealing for instances
! # of new-style classes).
_VERBOSE = False
***************
*** 31,35 ****
if __debug__:
! class _Verbose:
def __init__(self, verbose=None):
--- 35,39 ----
if __debug__:
! class _Verbose(object):
def __init__(self, verbose=None):
***************
*** 47,51 ****
else:
# Disable this when using "python -O"
! class _Verbose:
def __init__(self, verbose=None):
pass
--- 51,55 ----
else:
# Disable this when using "python -O"
! class _Verbose(object):
def __init__(self, verbose=None):
pass