~roadmr/canonical-identity-provider/fix-deprecation-warnings-1

  • Committer: Daniel Manrique
  • Date: 2018-05-25 17:03:41 UTC
  • Revision ID: roadmr@ubuntu.com-20180525170341-c4rrfl2ajdtv16tu
Ignore annoying import warnings.

Some harmless but annoying import warnings are shown with -Wd, which on the
other hand is needed so Django DeprecationWarnings are shown. Since these
ImportWarnings are for external modules over which we have no control, and they
are just warnings, it should be OK to ignore/suppress them. A real problem like
an ImportError is NOT silenced by this.

Example warnings when doing e.g. make start-db:


/usr/lib/python2.7/pkgutil.py:186: ImportWarning: Not importing directory '/env/lib/python2.7/site-packages/paste': missing __init__.py
  file, filename, etc = imp.find_module(subname, path)
/usr/lib/python2.7/pkgutil.py:186: ImportWarning: Not importing directory '/env/lib/python2.7/site-packages/lazr': missing __init__.py
  file, filename, etc = imp.find_module(subname, path)
/usr/lib/python2.7/pkgutil.py:186: ImportWarning: Not importing directory '/env/lib/python2.7/site-packages/backports': missing __init__.py
  file, filename, etc = imp.find_module(subname, path)
/usr/lib/python2.7/pkgutil.py:186: ImportWarning: Not importing directory '/env/lib/python2.7/site-packages/sphinxcontrib': missing __init__.py
  file, filename, etc = imp.find_module(subname, path)

affected modules (seen here, there may be others):
paste
lazr
backports
sphinxcontrib
Filename Latest Rev Last Changed Committer Comment Size
..
__init__.py 130.1.1 13 years ago Ricardo Kirkner moved project files to django_project 139 bytes Diff Download File
File manage.py 1335.1.7 8 years ago Simon Davy add more blank lines back 278 bytes Diff Download File
File paths.py 1598.3.1 6 years ago Maximiliano Bertacchini Add flake8 import order check to `make lint` targe 1.1 KB Diff Download File
settings.py.example 1462.1.2 7 years ago Kit Randel Set EMAIL_PORT=1025 in local_config/settings.py by 139 bytes Diff Download File
settings_acceptance_dev.py 1150.1.14 9 years ago Natalia Bidart Email port tweaks. 249 bytes Diff Download File
settings_base.py 1632.1.1 5 years ago Colin Watson Refer to terms of service and data privacy policy 19.2 KB Diff Download File
settings_build.py 1451.1.1 7 years ago Vincent Ladeuil Using /tmp/sso.log causes trouble on jenkins where 202 bytes Diff Download File
settings_devel.py 1597.2.4 6 years ago Tom Wardill More flake8 fixes 1.8 KB Diff Download File
settings_test.py 1597.2.4 6 years ago Tom Wardill More flake8 fixes 342 bytes Diff Download File
urls.py 1597.2.1 6 years ago Tom Wardill Merge flake8 changes 1.1 KB Diff Download File
wsgi.py 1601.1.1 6 years ago Maximiliano Bertacchini Fix wsgi.py import order. 217 bytes Diff Download File