Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Add comments in import sections to explain lazy imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Gillies committed Apr 5, 2017
1 parent 44b21ef commit d283dfe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions mapbox/services/base.py
Expand Up @@ -7,6 +7,9 @@
from .. import __version__
from mapbox import errors

# cachecontrol is imported lazily below.
# requests is imported lazily below.


def Session(access_token=None, env=os.environ):
"""Returns an HTTP session.
Expand Down
2 changes: 1 addition & 1 deletion mapbox/services/uploads.py
@@ -1,12 +1,12 @@
import os.path

# from boto3.session import Session as boto3_session
from uritemplate import URITemplate

from mapbox.errors import InvalidFileError
from mapbox.services.base import Service


# A placeholder for boto3.session.Session, which we load lazily.
boto3_session = None


Expand Down

0 comments on commit d283dfe

Please sign in to comment.