diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-08-22 20:43:48 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-08-22 20:43:48 (GMT) |
commit | b6a955672f513f93d36e5ba218fd3a5be2623bc6 (patch) | |
tree | d0a4a91c764e28ef3571e07ca203f31593dcf867 /Lib/threading.py | |
parent | 1cc69636effca5c74c49044b2c120aeaffacada9 (diff) | |
download | cpython-b6a955672f513f93d36e5ba218fd3a5be2623bc6.zip cpython-b6a955672f513f93d36e5ba218fd3a5be2623bc6.tar.gz cpython-b6a955672f513f93d36e5ba218fd3a5be2623bc6.tar.bz2 |
fix a few get_name() calls and turn then to .name
Reviewer: Christian Heimes
Diffstat (limited to 'Lib/threading.py')
-rw-r--r-- | Lib/threading.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/threading.py b/Lib/threading.py index 4933cab..7a58773 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -67,7 +67,7 @@ if __debug__: if self.__verbose: format = format % args format = "%s: %s\n" % ( - current_thread().get_name(), format) + current_thread().name, format) _sys.stderr.write(format) else: @@ -110,7 +110,7 @@ class _RLock(_Verbose): owner = self.__owner return "<%s(%s, %d)>" % ( self.__class__.__name__, - owner and owner.get_name(), + owner and owner.name, self.__count) def acquire(self, blocking=1): @@ -534,7 +534,7 @@ class Thread(_Verbose): # self. if _sys: _sys.stderr.write("Exception in thread %s:\n%s\n" % - (self.get_name(), _format_exc())) + (self.name, _format_exc())) else: # Do the best job possible w/o a huge amt. of code to # approximate a traceback (code ideas from @@ -542,7 +542,7 @@ class Thread(_Verbose): exc_type, exc_value, exc_tb = self.__exc_info() try: print>>self.__stderr, ( - "Exception in thread " + self.get_name() + + "Exception in thread " + self.name + " (most likely raised during interpreter shutdown):") print>>self.__stderr, ( "Traceback (most recent call last):") |