summaryrefslogtreecommitdiff
path: root/src/saml2/config.py
diff options
context:
space:
mode:
authorEgor Panfilov <edpanfilov@sbcloud.ru>2018-11-19 18:23:17 +0300
committerIvan Kanakarakis <ivan.kanak@gmail.com>2018-11-19 19:07:23 +0200
commit3a514b4cbebcf207f4b9dc29fee1f425572aca79 (patch)
tree8cfb2e421d285c97140ca6b34f330761b1245e19 /src/saml2/config.py
parenta8c6320095a73c61353b6c10df60cf3688dfedd3 (diff)
downloadpysaml2-3a514b4cbebcf207f4b9dc29fee1f425572aca79.tar.gz
Various small refactor
Diffstat (limited to 'src/saml2/config.py')
-rw-r--r--src/saml2/config.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/saml2/config.py b/src/saml2/config.py
index 8f90afc8..e890080a 100644
--- a/src/saml2/config.py
+++ b/src/saml2/config.py
@@ -381,11 +381,11 @@ class Config(object):
return importlib.import_module(tail)
- def load_file(self, config_file, metadata_construction=False):
- if config_file.endswith(".py"):
- config_file = config_file[:-3]
+ def load_file(self, config_filename, metadata_construction=False):
+ if config_filename.endswith(".py"):
+ config_filename = config_filename[:-3]
- mod = self._load(config_file)
+ mod = self._load(config_filename)
return self.load(copy.deepcopy(mod.CONFIG), metadata_construction)
def load_metadata(self, metadata_conf):