From ef7d0da81af28c40ff29eb0a973076ddc5002885 Mon Sep 17 00:00:00 2001
From: Jeff Long <willcode4@gmail.com>
Date: Sat, 17 Feb 2018 09:23:09 -0500
Subject: python gateway: use tuples instead of lists where possible

---
 gnuradio-runtime/python/gnuradio/gr/gateway.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'gnuradio-runtime/python/gnuradio/gr/gateway.py')

diff --git a/gnuradio-runtime/python/gnuradio/gr/gateway.py b/gnuradio-runtime/python/gnuradio/gr/gateway.py
index fe9a77bcc4..eb8f520af4 100644
--- a/gnuradio-runtime/python/gnuradio/gr/gateway.py
+++ b/gnuradio-runtime/python/gnuradio/gr/gateway.py
@@ -100,7 +100,7 @@ class py_io_signature(object):
     def port_types(self, nports):
         ntypes = len(self.__types)
         if ntypes == 0:
-            return []
+            return ()
         if nports <= ntypes:
             return self.__types[:nports]
         return self.__types + [self.__types[-1]]*(nports-ntypes)
@@ -112,9 +112,9 @@ class gateway_block(object):
 
     def __init__(self, name, in_sig, out_sig, work_type, factor):
 
-        # Normalize the many Python ways of saying 'nothing' to '[]'
-        in_sig = in_sig or []
-        out_sig = out_sig or []
+        # Normalize the many Python ways of saying 'nothing' to '()'
+        in_sig = in_sig or ()
+        out_sig = out_sig or ()
 
         # Backward compatibility: array of type strings -> py_io_signature
         if type(in_sig) is py_io_signature:
-- 
cgit v1.2.3