We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2e1ce5 commit cdff94bCopy full SHA for cdff94b
1 file changed
pyiceberg/io/fsspec.py
@@ -193,7 +193,7 @@ def _gs(properties: Properties) -> AbstractFileSystem:
193
194
195
def _adls(properties: Properties) -> AbstractFileSystem:
196
- import time
+ # https://fsspec.github.io/adlfs/api/
197
198
from adlfs import AzureBlobFileSystem
199
from azure.core.credentials import AccessToken
@@ -214,6 +214,8 @@ def __init__(self, token_string: str) -> None:
214
self._token = token_string
215
216
async def get_token(self, *scopes: str, **kwargs: Any) -> AccessToken:
217
+ import time
218
+
219
# Set expiration 1 hour from now
220
expires_on = int(time.time()) + self._DEFAULT_EXPIRY_SECONDS
221
return AccessToken(self._token, expires_on)
0 commit comments