Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove un-used import, utilize the default option of getattr
  • Loading branch information
Reece authored and Reece committed Apr 11, 2017
commit 43d182efffe4f66df459665e203ea9bdccb863be
6 changes: 1 addition & 5 deletions djangosaml2/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from defusedxml import ElementTree
from django.conf import settings


def get_custom_setting(name, default=None):
if hasattr(settings, name):
return getattr(settings, name)
else:
return default
return getattr(settings, name, default)


def available_idps(config, langpref=None):
Expand Down