projects
/
ganeti-local
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
HTools/Types.hs: more auto-repair types
[ganeti-local]
/
lib
/
ht.py
diff --git
a/lib/ht.py
b/lib/ht.py
index
eba209a
..
a449e82
100644
(file)
--- a/
lib/ht.py
+++ b/
lib/ht.py
@@
-259,6
+259,14
@@
def TList(val):
return isinstance(val, list)
+@WithDesc("Tuple")
+def TTuple(val):
+ """Checks if the given value is a tuple.
+
+ """
+ return isinstance(val, tuple)
+
+
@WithDesc("Dictionary")
def TDict(val):
"""Checks if the given value is a dictionary.