Skip to content

Commit 6a92448

Browse files
a-andremormj
authored andcommitted
Remove pygccxml hack
Upstream fixed the issue in version 2.0.0, the minimal version gnuradio depends on. Signed-off-by: André Apitzsch <andre.apitzsch@etit.tu-chemnitz.de>
1 parent 3d4d9a4 commit 6a92448

File tree

3 files changed

+0
-19
lines changed

3 files changed

+0
-19
lines changed

gr-utils/blocktool/core/parseheader.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,12 @@
1313
from ..core.comments import read_comments, add_comments, exist_comments
1414
from ..core.iosignature import io_signature, message_port
1515
from ..core.base import BlockToolException, BlockTool
16-
import time
1716
import os
1817
import re
1918
import codecs
2019
import logging
2120

2221
PYGCCXML_AVAILABLE = False
23-
# ugly hack to make pygccxml work with Python >= 3.8
24-
try:
25-
time.clock
26-
except:
27-
time.clock = time.perf_counter
2822
try:
2923
from pygccxml import parser, declarations, utils
3024
PYGCCXML_AVAILABLE = True

gr-utils/blocktool/core/parseheader_generic.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
""" Module to generate AST for the headers and parse it """
1010

1111

12-
import time
1312
import os
1413
import re
1514
import codecs
@@ -22,11 +21,6 @@
2221

2322
LOGGER = logging.getLogger(__name__)
2423
PYGCCXML_AVAILABLE = False
25-
# ugly hack to make pygccxml work with Python >= 3.8
26-
try:
27-
time.clock
28-
except:
29-
time.clock = time.perf_counter
3024

3125
try:
3226
from pygccxml import parser, declarations, utils

gr-utils/blocktool/tests/test_blocktool.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@
1313
import unittest
1414
import warnings
1515

16-
# ugly hack to make pygccxml work with Python >= 3.8
17-
import time
18-
try:
19-
time.clock
20-
except:
21-
time.clock = time.perf_counter
22-
2316
try:
2417
import pygccxml
2518
SKIP_BLOCK_TEST = False

0 commit comments

Comments
 (0)