diff options
Diffstat (limited to 'gr-utils/modtool/templates/gr-newmod/python/bindings/header_utils.py')
-rw-r--r-- | gr-utils/modtool/templates/gr-newmod/python/bindings/header_utils.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gr-utils/modtool/templates/gr-newmod/python/bindings/header_utils.py b/gr-utils/modtool/templates/gr-newmod/python/bindings/header_utils.py index 165124e969..2150a76a25 100644 --- a/gr-utils/modtool/templates/gr-newmod/python/bindings/header_utils.py +++ b/gr-utils/modtool/templates/gr-newmod/python/bindings/header_utils.py @@ -17,8 +17,8 @@ class PybindHeaderParser: return True else: return False - - def get_flag_pygccxml(self): + + def get_flag_pygccxml(self): # p = re.compile(r'BINDTOOL_USE_PYGCCXML\(([^\s])\)') # m = p.search(self.file_txt) m = re.search(r'BINDTOOL_USE_PYGCCXML\(([^\s])\)', self.file_txt) @@ -54,7 +54,7 @@ def argParse(): """Parses commandline args.""" desc='Reads the parameters from the comment block in the pybind files' parser = ArgumentParser(description=desc) - + parser.add_argument("function", help="Operation to perform on comment block of pybind file", choices=["flag_auto","flag_pygccxml","header_filename","header_file_hash","all"]) parser.add_argument("pathname", help="Pathname of pybind c++ file to read, e.g. blockname_python.cc") @@ -73,6 +73,6 @@ if __name__ == "__main__": elif args.function == "header_filename": print(pbhp.get_header_filename()) elif args.function == "header_file_hash": - print(pbhp.get_header_file_hash()) + print(pbhp.get_header_file_hash()) elif args.function == "all": - print(pbhp.get_flags())
\ No newline at end of file + print(pbhp.get_flags()) |