Remove the "if" rule from the holidays. Now libholiday does not execute any code in holidays.xml.

svn: r11936
This commit is contained in:
Brian Matherly 2009-02-09 13:31:16 +00:00
parent 419a180e21
commit 2e976ddf76

View File

@ -267,7 +267,6 @@ class _Holidays:
"name" : "", "name" : "",
"offset": "", "offset": "",
"type": "", "type": "",
"if": "",
} # defaults } # defaults
for attr in date.get_attributes(): for attr in date.get_attributes():
data[attr] = date.get_attribute(attr) data[attr] = date.get_attribute(attr)
@ -377,9 +376,6 @@ class _Holidays:
print "ndate:", ndate, "date:", date print "ndate:", ndate, "date:", date
if ndate == date: if ndate == date:
if rule["if"] != "":
if not eval(rule["if"]):
continue
retval.append(rule["name"]) retval.append(rule["name"])
return retval return retval