From 2e976ddf7646b1d61c70ef728c806c843b69e7ff Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Mon, 9 Feb 2009 13:31:16 +0000 Subject: [PATCH] Remove the "if" rule from the holidays. Now libholiday does not execute any code in holidays.xml. svn: r11936 --- src/plugins/lib/libholiday.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/plugins/lib/libholiday.py b/src/plugins/lib/libholiday.py index d111f9ed6..679c8d912 100644 --- a/src/plugins/lib/libholiday.py +++ b/src/plugins/lib/libholiday.py @@ -267,7 +267,6 @@ class _Holidays: "name" : "", "offset": "", "type": "", - "if": "", } # defaults for attr in date.get_attributes(): data[attr] = date.get_attribute(attr) @@ -377,9 +376,6 @@ class _Holidays: print "ndate:", ndate, "date:", date if ndate == date: - if rule["if"] != "": - if not eval(rule["if"]): - continue retval.append(rule["name"]) return retval