Skip to content

Commit

Permalink
Py3.6: Ignore requests package warning about chardet 5
Browse files Browse the repository at this point in the history
needed until psf/requests#6240 is fixed
  • Loading branch information
mr-c committed Sep 16, 2022
1 parent 2e125aa commit 2cdcc4a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions schema_salad/__init__.py
@@ -1,9 +1,14 @@
"""Salad is a schema language for describing JSON or YAML structured linked data documents"""

import logging
import sys
import warnings

__author__ = "peter.amstutz@curoverse.com"

_logger = logging.getLogger("salad")
_logger.addHandler(logging.StreamHandler())
_logger.setLevel(logging.INFO)

if sys.version_info < (3, 7):
warnings.filterwarnings("ignore", message="urllib3.*", module="requests")

0 comments on commit 2cdcc4a

Please sign in to comment.