]> git.llucax.com Git - software/pymin.git/blobdiff - seqtools.py
Add a ParametersHandler to services.util.
[software/pymin.git] / seqtools.py
index 13e6eacc341da69bbc6ceab71b73804271117a1d..d3de9299446b70b913f77ba293b9c0cccceeac6b 100644 (file)
@@ -92,6 +92,8 @@ def as_table(obj):
         if hasattr(i, '__iter__'):
             return obj
         return (obj,)
         if hasattr(i, '__iter__'):
             return obj
         return (obj,)
+    else:
+        return ((),) # empty table
 
 
 if __name__ == '__main__':
 
 
 if __name__ == '__main__':
@@ -128,3 +130,5 @@ if __name__ == '__main__':
 
         print f(dict(a=1, b=2))
 
 
         print f(dict(a=1, b=2))
 
+        print f([])
+