mirror of https://github.com/docker/docker-py.git
				
				
				
			Use six.moves to handle a py2+py3 import
Signed-off-by: Anthony Sottile <asottile@umich.edu>
This commit is contained in:
		
							parent
							
								
									b4efdc1b28
								
							
						
					
					
						commit
						22b7b76142
					
				|  | @ -1,14 +1,10 @@ | |||
| import six | ||||
| import requests.adapters | ||||
| import socket | ||||
| from six.moves import http_client as httplib | ||||
| 
 | ||||
| from .. import constants | ||||
| 
 | ||||
| if six.PY3: | ||||
|     import http.client as httplib | ||||
| else: | ||||
|     import httplib | ||||
| 
 | ||||
| try: | ||||
|     import requests.packages.urllib3 as urllib3 | ||||
| except ImportError: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue