]> granicus.if.org Git - python/commitdiff
Fix fallout from making __private variables in threading.py _protected.
authorGuido van Rossum <guido@python.org>
Tue, 21 Aug 2007 03:36:47 +0000 (03:36 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 21 Aug 2007 03:36:47 +0000 (03:36 +0000)
(Maybe we need to pick less obvious names for some of those?)

Lib/test/test_urllib2_localnet.py

index a126262140fc533a9abb2989ad7b495c05012ba0..8784f9546f0dff57ccc2e6a0f6dbbf6694f32827 100644 (file)
@@ -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