odoo/upgrade-util#342

Created by Upgrade, Alvaro Fuentes Suarez (afu)
Merged at 59e6b42da93eacb07116ef40fff1e9797e3e7f1e

Statuses:

label
odoo-dev:master-fix_typo-afu
head
42e4c4ab2235cb6e22dd1b656f84f8409b6474eb
merged
1 month ago by Upgrade, Alvaro Fuentes Suarez (afu)
odoo/upgrade-util
master #342

[FIX] util/modules: fix wrong usage of warnings filtering

It's catch_warnings not catchwarnings
https://docs.python.org/2/library/warnings.html#warnings.catch_warnings
https://docs.python.org/3/library/warnings.html#warnings.catch_warnings

The context manager is meant to allow for specific filters that would be
reverted once it exists. This patch corrects the usage.

Oversight of odoo-dev@fbd0b4ff4812d1495e977d0985abc832b357795e