##// END OF EJS Templates
namespaces: add a function to turn single results into lists
Sean Farley -
r23555:f08f6a7d default
parent child Browse files
Show More
@@ -1,5 +1,14 b''
1 from mercurial import util
1 from mercurial import util
2
2
3 def tolist(val):
4 """
5 a convenience method to return an empty list instead of None
6 """
7 if val is None:
8 return []
9 else:
10 return [val]
11
3 class namespaces(object):
12 class namespaces(object):
4 """
13 """
5 provides an interface to register a generic many-to-many mapping between
14 provides an interface to register a generic many-to-many mapping between
General Comments 0
You need to be logged in to leave comments. Login now