summaryrefslogtreecommitdiff
path: root/grc
diff options
context:
space:
mode:
Diffstat (limited to 'grc')
-rw-r--r--grc/blocks/gr_message_debug.xml2
-rw-r--r--grc/blocks/gr_pdu_to_tagged_stream.xml6
-rw-r--r--grc/blocks/gr_tagged_stream_to_pdu.xml6
-rw-r--r--grc/python/extract_docs.py8
4 files changed, 14 insertions, 8 deletions
diff --git a/grc/blocks/gr_message_debug.xml b/grc/blocks/gr_message_debug.xml
index 4d73fbd9c..964f95756 100644
--- a/grc/blocks/gr_message_debug.xml
+++ b/grc/blocks/gr_message_debug.xml
@@ -20,7 +20,7 @@
<optional>1</optional>
</sink>
<sink>
- <name>print_pdu_verbose</name>
+ <name>print_pdu</name>
<type>message</type>
<optional>1</optional>
</sink>
diff --git a/grc/blocks/gr_pdu_to_tagged_stream.xml b/grc/blocks/gr_pdu_to_tagged_stream.xml
index fc1c4d16a..6d2fea97e 100644
--- a/grc/blocks/gr_pdu_to_tagged_stream.xml
+++ b/grc/blocks/gr_pdu_to_tagged_stream.xml
@@ -16,17 +16,17 @@
<option>
<name>Byte</name>
<key>byte</key>
- <opt>tv:gr.BYTE</opt>
+ <opt>tv:gr.pdu_byte</opt>
</option>
<option>
<name>Complex</name>
<key>complex</key>
- <opt>tv:gr.COMPLEX</opt>
+ <opt>tv:gr.pdu_complex</opt>
</option>
<option>
<name>Float</name>
<key>float</key>
- <opt>tv:gr.FLOAT</opt>
+ <opt>tv:gr.pdu_float</opt>
</option>
</param>
<sink>
diff --git a/grc/blocks/gr_tagged_stream_to_pdu.xml b/grc/blocks/gr_tagged_stream_to_pdu.xml
index e70a01608..e2f754c9e 100644
--- a/grc/blocks/gr_tagged_stream_to_pdu.xml
+++ b/grc/blocks/gr_tagged_stream_to_pdu.xml
@@ -16,17 +16,17 @@
<option>
<name>Byte</name>
<key>byte</key>
- <opt>tv:gr.BYTE</opt>
+ <opt>tv:gr.pdu_byte</opt>
</option>
<option>
<name>Complex</name>
<key>complex</key>
- <opt>tv:gr.COMPLEX</opt>
+ <opt>tv:gr.pdu_complex</opt>
</option>
<option>
<name>Float</name>
<key>float</key>
- <opt>tv:gr.FLOAT</opt>
+ <opt>tv:gr.pdu_float</opt>
</option>
</param>
<sink>
diff --git a/grc/python/extract_docs.py b/grc/python/extract_docs.py
index a7e945c37..33c404362 100644
--- a/grc/python/extract_docs.py
+++ b/grc/python/extract_docs.py
@@ -31,7 +31,13 @@ def _extract(key):
module_name, constructor_name = key.split('_', 1)
module = __import__('gnuradio.'+module_name)
module = getattr(module, module_name)
- except: return ''
+ except ImportError:
+ try:
+ module_name, constructor_name = key.split('_', 1)
+ module = __import__(module_name)
+ except: return ''
+ except:
+ return ''
pattern = constructor_name.replace('_', '_*').replace('x', '\w')
pattern_matcher = re.compile('^%s\w*$'%pattern)
matches = filter(lambda x: pattern_matcher.match(x), dir(module))