Skip to content

Commit c208533

Browse files
committed
fix: indentation in CommandLib.
1 parent ab8aa9d commit c208533

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

python/datafed_pkg/datafed/CommandLib.py

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3164,33 +3164,33 @@ def _setSaneDefaultOptions(self):
31643164

31653165
return opts
31663166

3167-
def _load_schema_file(self, filepath):
3168-
"""
3169-
Read a schema definition from a local JSON file
3170-
3171-
Parameters
3172-
----------
3173-
filepath : str
3174-
Path to the schema definition file
3175-
3176-
Returns
3177-
-------
3178-
str
3179-
File contents as a string
3180-
3181-
Raises
3182-
------
3183-
Exception : If file cannot be opened or read
3184-
"""
3185-
try:
3186-
f = open(filepath, "r")
3187-
content = f.read()
3188-
f.close()
3189-
return content
3190-
except BaseException:
3191-
raise Exception(
3192-
"Could not open schema definition file: {}".format(filepath)
3193-
)
3167+
def _load_schema_file(self, filepath):
3168+
"""
3169+
Read a schema definition from a local JSON file
3170+
3171+
Parameters
3172+
----------
3173+
filepath : str
3174+
Path to the schema definition file
3175+
3176+
Returns
3177+
-------
3178+
str
3179+
File contents as a string
3180+
3181+
Raises
3182+
------
3183+
Exception : If file cannot be opened or read
3184+
"""
3185+
try:
3186+
f = open(filepath, "r")
3187+
content = f.read()
3188+
f.close()
3189+
return content
3190+
except BaseException:
3191+
raise Exception(
3192+
"Could not open schema definition file: {}".format(filepath)
3193+
)
31943194

31953195
def _validate_json(self, json_str, label="JSON"):
31963196
"""

0 commit comments

Comments
 (0)