Skip to content

Commit

Permalink
global: disable urllib3 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lnielsen committed Dec 22, 2017
1 parent deea7d3 commit 2e46736
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions zenodo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,12 +373,17 @@

from __future__ import absolute_import, print_function

import urllib3

from invenio_app.factory import create_app, create_ui
from invenio_base.signals import app_created

from .version import __version__


urllib3.disable_warnings()


def disable_strict_slashes(sender, app=None, **kwargs):
"""Disable strict slashes on URL map."""
app.url_map.strict_slashes = False # Legacy support
Expand Down

0 comments on commit 2e46736

Please sign in to comment.