73
73
)
74
74
75
75
76
- def validate_config_file (* domains ):
76
+ def validate_domains (* domains ):
77
77
for d in domains :
78
78
if not d .lower ().startswith ('https' ):
79
79
warnings .warn (http_msg )
@@ -224,7 +224,7 @@ def set_config_file(plotly_domain=None,
224
224
'sharing' : sharing , 'world_readable' : world_readable })
225
225
settings = get_config_file ()
226
226
if isinstance (plotly_domain , six .string_types ):
227
- validate_config_file (plotly_domain )
227
+ #validate_domains (plotly_domain)
228
228
settings ['plotly_domain' ] = plotly_domain
229
229
elif plotly_domain is not None :
230
230
raise TypeError ('plotly_domain should be a string' )
@@ -233,7 +233,7 @@ def set_config_file(plotly_domain=None,
233
233
elif plotly_streaming_domain is not None :
234
234
raise TypeError ('plotly_streaming_domain should be a string' )
235
235
if isinstance (plotly_api_domain , six .string_types ):
236
- validate_config_file (plotly_api_domain )
236
+ #validate_domains (plotly_api_domain)
237
237
settings ['plotly_api_domain' ] = plotly_api_domain
238
238
elif plotly_api_domain is not None :
239
239
raise TypeError ('plotly_api_domain should be a string' )
@@ -276,10 +276,9 @@ def get_config_file(*args):
276
276
"""
277
277
if check_file_permissions ():
278
278
ensure_local_plotly_files () # make sure what's there is OK
279
- returned_obj = utils .load_json_dict (CONFIG_FILE , * args )
279
+ return utils .load_json_dict (CONFIG_FILE , * args )
280
280
else :
281
- returned_obj = FILE_CONTENT [CONFIG_FILE ]
282
- return returned_obj
281
+ return FILE_CONTENT [CONFIG_FILE ]
283
282
284
283
285
284
def reset_config_file ():
0 commit comments