Skip to content

Commit 35f4cdc

Browse files
author
Tom McCormick
committed
move variable usage closer to usage
1 parent 13001c8 commit 35f4cdc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pyiceberg/io/pyarrow.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,10 +399,9 @@ def parse_location(location: str, properties: Properties = EMPTY_DICT) -> Tuple[
399399
"""
400400
uri = urlparse(location)
401401

402-
default_scheme = properties.get("DEFAULT_SCHEME", "file")
403-
default_netloc = properties.get("DEFAULT_NETLOC", "")
404-
405402
if not uri.scheme:
403+
default_scheme = properties.get("DEFAULT_SCHEME", "file")
404+
default_netloc = properties.get("DEFAULT_NETLOC", "")
406405
return default_scheme, default_netloc, os.path.abspath(location)
407406
elif uri.scheme in ("hdfs", "viewfs"):
408407
return uri.scheme, uri.netloc, uri.path

0 commit comments

Comments
 (0)