diff options
author | Bruno Haible <bruno@clisp.org> | 2022-08-06 21:54:04 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2022-08-06 21:54:04 +0200 |
commit | 860df12df83dd27ae2b83e0ed6b485c4ffbb640e (patch) | |
tree | db6699d52d134119c7ce6e4c61ee1133de1b1484 /pygnulib | |
parent | 6ef9c33342e6cdb898e157997ea33ed2ab8e00cb (diff) | |
download | gnulib-860df12df83dd27ae2b83e0ed6b485c4ffbb640e.tar.gz |
gnulib-tool.py: Finish implementing option --witness-c-macro.
* gnulib-tool.py (main): Accept option --witness-c-macro.
* pygnulib/GLConfig.py (GLConfig.__init__): Remove wrong type check of
witness_c_macro argument.
Diffstat (limited to 'pygnulib')
-rw-r--r-- | pygnulib/GLConfig.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/pygnulib/GLConfig.py b/pygnulib/GLConfig.py index e571dff2b3..5f30a80797 100644 --- a/pygnulib/GLConfig.py +++ b/pygnulib/GLConfig.py @@ -153,14 +153,7 @@ class GLConfig(object): # witness_c_macro self.resetWitnessCMacro() if witness_c_macro != None: - if type(witness_c_macro) is bool: - if not witness_c_macro: - self.setWitnessCMacro() - else: # if witness_c_macro - self.resetWitnessCMacro() - else: # if type(witness_c_macro) is not bool - raise TypeError('witness_c_macro must be a bool, not %s' - % type(witness_c_macro).__name__) + self.setWitnessCMacro(witness_c_macro) # vc_files self.resetVCFiles() if vc_files != None: |