[devscripts/buildserver] Use compat_input from compat
This commit is contained in:
		
							parent
							
								
									1ae6c83bce
								
							
						
					
					
						commit
						e92b552a10
					
				
					 1 changed files with 1 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -13,6 +13,7 @@ import os.path
 | 
			
		|||
 | 
			
		||||
sys.path.insert(0, os.path.dirname(os.path.dirname((os.path.abspath(__file__)))))
 | 
			
		||||
from youtube_dl.compat import (
 | 
			
		||||
    compat_input,
 | 
			
		||||
    compat_http_server,
 | 
			
		||||
    compat_str,
 | 
			
		||||
    compat_urlparse,
 | 
			
		||||
| 
						 | 
				
			
			@ -30,11 +31,6 @@ try:
 | 
			
		|||
except ImportError:  # Python 2
 | 
			
		||||
    import SocketServer as compat_socketserver
 | 
			
		||||
 | 
			
		||||
try:
 | 
			
		||||
    compat_input = raw_input
 | 
			
		||||
except NameError:  # Python 3
 | 
			
		||||
    compat_input = input
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class BuildHTTPServer(compat_socketserver.ThreadingMixIn, compat_http_server.HTTPServer):
 | 
			
		||||
    allow_reuse_address = True
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue