Mercurial > gnulib
changeset 19310:fec451d8b5bd
fix incorrect initial values for bitwise flags
author | Dmitry Selyutin <ghostmansd@gmail.com> |
---|---|
date | Tue, 26 Sep 2017 17:39:04 +0300 |
parents | 0cc46da7e061 |
children | dec6b679991d |
files | pygnulib/config.py pygnulib/parser.py |
diffstat | 2 files changed, 2 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/pygnulib/config.py Tue Sep 26 10:13:38 2017 +0300 +++ b/pygnulib/config.py Tue Sep 26 17:39:04 2017 +0300 @@ -361,7 +361,7 @@ @property def options(self): """bitmask of active options""" - result = ~Option.All + result = 0 if self.obsolete: result |= Option.Obsolete if self.tests:
--- a/pygnulib/parser.py Tue Sep 26 10:13:38 2017 +0300 +++ b/pygnulib/parser.py Tue Sep 26 17:39:04 2017 +0300 @@ -935,13 +935,7 @@ options: a combination of CommandLine.Option flags """ (namespace, arguments) = self.__parser.parse_known_args(arguments) - namespace = vars(namespace) - options = ~(CommandLine.Option.DryRun | - CommandLine.Option.Symlink | - CommandLine.Option.Hardlink | - CommandLine.Option.OnlyLocalLinks | - CommandLine.Option.UpdateCopyrights | - CommandLine.Option.SingleConfigure) + (namespace, options) = (vars(namespace), 0) mode = namespace.pop("mode", None) if mode is None: self.__parser.error("no operating mode selected")