##// END OF EJS Templates
util: eliminate the possibility of returning None from `versiontuple()`...
Matt Harbison -
r48826:376d08ae default
parent child Browse files
Show More
@@ -1225,6 +1225,8 b' def versiontuple(v=None, n=4):'
1225 1225 if n == 4:
1226 1226 return (vints[0], vints[1], vints[2], extra)
1227 1227
1228 raise error.ProgrammingError(b"invalid version part request: %d" % n)
1229
1228 1230
1229 1231 def cachefunc(func):
1230 1232 '''cache the result of function calls'''
General Comments 0
You need to be logged in to leave comments. Login now