Mercurial > gnulib
diff pygnulib/generator.py @ 39128:d3904b5d6bfd
generator: swap mkedits yield and delete actions
author | Dmitry Selyutin <ghostmansd@gmail.com> |
---|---|
date | Wed, 04 Jul 2018 10:54:18 +0300 |
parents | f9ec3654d894 |
children | e9a763b44069 |
line wrap: on
line diff
--- a/pygnulib/generator.py Wed Jul 04 10:19:24 2018 +0300 +++ b/pygnulib/generator.py Wed Jul 04 10:54:18 2018 +0300 @@ -625,8 +625,8 @@ for (directory, key, value) in mkedits: if key and _os.path.join(directory, "Makefile.am") == path: + yield f"{key} += {value}" del (directory, key, value) - yield f"{key} += {value}" cppflags = "".join(( " -D{}=1".format(config.witness_c_macro) if "witness_c_macro" in explicit else "",