diff options
Diffstat (limited to 'gr-utils/blocktool/core/parseheader.py')
-rw-r--r-- | gr-utils/blocktool/core/parseheader.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gr-utils/blocktool/core/parseheader.py b/gr-utils/blocktool/core/parseheader.py index ef5d6d36ef..ac7f437961 100644 --- a/gr-utils/blocktool/core/parseheader.py +++ b/gr-utils/blocktool/core/parseheader.py @@ -18,6 +18,12 @@ import codecs import logging PYGCCXML_AVAILABLE = False +# ugly hack to make pygccxml work with Python >= 3.8 +import time +try: + time.clock +except: + time.clock = time.perf_counter try: from pygccxml import parser, declarations, utils PYGCCXML_AVAILABLE = True |