File tree 5 files changed +10
-11
lines changed
5 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 2
2
import os
3
3
4
4
from docker import errors
5
- from docker . context import Context
6
- from docker . context .config import (
5
+
6
+ from .config import (
7
7
METAFILE ,
8
8
get_current_context_name ,
9
9
get_meta_dir ,
10
10
write_context_name_to_docker_config ,
11
11
)
12
+ from .context import Context
12
13
13
14
14
15
class ContextAPI :
Original file line number Diff line number Diff line change 2
2
import os
3
3
from shutil import copyfile , rmtree
4
4
5
- from docker .context .config import (
5
+ from docker .errors import ContextException
6
+ from docker .tls import TLSConfig
7
+
8
+ from .config import (
6
9
get_context_host ,
7
10
get_meta_dir ,
8
11
get_meta_file ,
9
12
get_tls_dir ,
10
13
)
11
- from docker .errors import ContextException
12
- from docker .tls import TLSConfig
13
14
14
15
15
16
class Context :
Original file line number Diff line number Diff line change 4
4
import urllib3
5
5
import urllib3 .connection
6
6
7
- from docker .transport .basehttpadapter import BaseHTTPAdapter
8
-
9
7
from .. import constants
8
+ from .basehttpadapter import BaseHTTPAdapter
10
9
from .npipesocket import NpipeSocket
11
10
12
11
RecentlyUsedContainer = urllib3 ._collections .RecentlyUsedContainer
Original file line number Diff line number Diff line change 11
11
import urllib3
12
12
import urllib3 .connection
13
13
14
- from docker .transport .basehttpadapter import BaseHTTPAdapter
15
-
16
14
from .. import constants
15
+ from .basehttpadapter import BaseHTTPAdapter
17
16
18
17
RecentlyUsedContainer = urllib3 ._collections .RecentlyUsedContainer
19
18
Original file line number Diff line number Diff line change 4
4
import urllib3
5
5
import urllib3 .connection
6
6
7
- from docker .transport .basehttpadapter import BaseHTTPAdapter
8
-
9
7
from .. import constants
8
+ from .basehttpadapter import BaseHTTPAdapter
10
9
11
10
RecentlyUsedContainer = urllib3 ._collections .RecentlyUsedContainer
12
11
You can’t perform that action at this time.
0 commit comments