mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Fixed doc xml rpc tests and server
This commit is contained in:
		
							parent
							
								
									a13f4a1129
								
							
						
					
					
						commit
						a5535f2b36
					
				
					 2 changed files with 8 additions and 9 deletions
				
			
		|  | @ -123,12 +123,12 @@ def docserver(self, server_name, package_documentation, methods): | |||
|         result = result + '<p>%s</p>\n' % doc | ||||
| 
 | ||||
|         contents = [] | ||||
|         method_items = methods.items() | ||||
|         method_items = list(methods.items()) | ||||
|         method_items.sort() | ||||
|         for key, value in method_items: | ||||
|             contents.append(self.docroutine(value, key, funcs=fdict)) | ||||
|         result = result + self.bigsection( | ||||
|             'Methods', '#ffffff', '#eeaa77', pydoc.join(contents)) | ||||
|             'Methods', '#ffffff', '#eeaa77', ''.join(contents)) | ||||
| 
 | ||||
|         return result | ||||
| 
 | ||||
|  | @ -239,7 +239,7 @@ def do_GET(self): | |||
|         self.send_header("Content-type", "text/html") | ||||
|         self.send_header("Content-length", str(len(response))) | ||||
|         self.end_headers() | ||||
|         self.wfile.write(response) | ||||
|         self.wfile.write(response.encode()) | ||||
| 
 | ||||
|         # shut down the connection | ||||
|         self.wfile.flush() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Christian Heimes
						Christian Heimes