Skip to content

Commit 977d51a

Browse files
committed
Make client directory private
1 parent 72f1851 commit 977d51a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

planet/clients/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
15+
1516
from .data import DataClient
1617
from .orders import OrdersClient
1718
from .subscriptions import SubscriptionsClient
@@ -23,7 +24,7 @@
2324
]
2425

2526
# Organize client classes by their module name to allow concise lookup.
26-
client_directory = {
27+
_client_directory = {
2728
'data': DataClient,
2829
'orders': OrdersClient,
2930
'subscriptions': SubscriptionsClient

planet/http.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,10 +431,10 @@ def client(self,
431431
432432
"""
433433
# To avoid circular dependency.
434-
from planet.clients import client_directory
434+
from planet.clients import _client_directory
435435

436436
try:
437-
return client_directory[name](self, base_url=base_url)
437+
return _client_directory[name](self, base_url=base_url)
438438
except KeyError:
439439
raise exceptions.ClientError("No such client.")
440440

0 commit comments

Comments
 (0)