##// END OF EJS Templates
util: move from dict() construction to {} literals...
Augie Fackler -
r20679:0916f829 default
parent child Browse files
Show More
@@ -1198,11 +1198,11 b' def matchdate(date):'
1198 """
1198 """
1199
1199
1200 def lower(date):
1200 def lower(date):
1201 d = dict(mb="1", d="1")
1201 d = {'mb': "1", 'd': "1"}
1202 return parsedate(date, extendeddateformats, d)[0]
1202 return parsedate(date, extendeddateformats, d)[0]
1203
1203
1204 def upper(date):
1204 def upper(date):
1205 d = dict(mb="12", HI="23", M="59", S="59")
1205 d = {'mb': "12", 'HI': "23", 'M': "59", 'S': "59"}
1206 for days in ("31", "30", "29"):
1206 for days in ("31", "30", "29"):
1207 try:
1207 try:
1208 d["d"] = days
1208 d["d"] = days
General Comments 0
You need to be logged in to leave comments. Login now