Mercurial > gnulib
changeset 38988:e4df7458557f
module: relax type check after the last commit
author | Dmitry Selyutin <ghostmansd@gmail.com> |
---|---|
date | Tue, 26 Sep 2017 10:13:38 +0300 |
parents | e7d09d75b382 |
children | 7fb48bc802ab |
files | pygnulib/module.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pygnulib/module.py Mon Sep 25 21:31:11 2017 +0200 +++ b/pygnulib/module.py Tue Sep 26 10:13:38 2017 +0300 @@ -457,7 +457,9 @@ """ if not callable(lookup): raise TypeError("lookup must be a callable") - _type_assert_("options", options, _ConfigOption_) + _type_assert_("options", options, int) + if options & ~_ConfigOption_.All: + raise ValueError("unknown configuration options") obsolete = bool(options & _ConfigOption_.Obsolete) tests = bool(options & _ConfigOption_.Tests)