diff options
author | Guido van Rossum <guido@python.org> | 2007-08-21 03:36:47 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-21 03:36:47 (GMT) |
commit | 4566c71e0ea13acd519b732eda3cf9d70d3a62ca (patch) | |
tree | 4662adcad5a90a47b2554c47b7227efe0f0a4e56 /Lib | |
parent | 360f2f8be3b66741c4ead2dd86aee4cee74f5709 (diff) | |
download | cpython-4566c71e0ea13acd519b732eda3cf9d70d3a62ca.zip cpython-4566c71e0ea13acd519b732eda3cf9d70d3a62ca.tar.gz cpython-4566c71e0ea13acd519b732eda3cf9d70d3a62ca.tar.bz2 |
Fix fallout from making __private variables in threading.py _protected.
(Maybe we need to pick less obvious names for some of those?)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_urllib2_localnet.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_urllib2_localnet.py b/Lib/test/test_urllib2_localnet.py index a126262..8784f95 100644 --- a/Lib/test/test_urllib2_localnet.py +++ b/Lib/test/test_urllib2_localnet.py @@ -42,7 +42,7 @@ class LoopbackHttpServerThread(threading.Thread): def __init__(self, request_handler): threading.Thread.__init__(self) - self._stop = False + self._stop_server = False self.ready = threading.Event() request_handler.protocol_version = "HTTP/1.0" self.httpd = LoopbackHttpServer(('127.0.0.1', 0), @@ -55,13 +55,13 @@ class LoopbackHttpServerThread(threading.Thread): """Stops the webserver if it's currently running.""" # Set the stop flag. - self._stop = True + self._stop_server = True self.join() def run(self): self.ready.set() - while not self._stop: + while not self._stop_server: self.httpd.handle_request() # Authentication infrastructure |