def stop(self):
<EOL>time.sleep(<NUM_LIT:0.1>)<EOL>self._run = False<EOL>url = '<STR_LIT>' % vars(self)<EOL>try:<EOL><INDENT>if sys.version_info >= (<NUM_LIT:2>, <NUM_LIT:6>):<EOL><INDENT>urllib2.urlopen(url, timeout=<NUM_LIT:5>)<EOL><DEDENT>else:<EOL><INDENT>urllib2.urlopen(url)<EOL><DEDENT><DEDENT>except urllib2.URLError:<EOL><INDENT>pass<EOL><DEDENT>self.thread.join()<EOL>
Stop the server