File tree Expand file tree Collapse file tree 1 file changed +27
-27
lines changed
python/datafed_pkg/datafed Expand file tree Collapse file tree 1 file changed +27
-27
lines changed Original file line number Diff line number Diff 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 """
You can’t perform that action at this time.
0 commit comments