summaryrefslogtreecommitdiff
path: root/sievelib
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-11-18 21:31:12 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-11-18 21:31:12 (GMT)
commit86716afa17c3ddc5148efedc29ed7e15af0ba524 (patch)
treef7c9184f4c8a48be6ff9d7d43be216c9bc8534fc /sievelib
parent5164be885cd70516a0cfea30c28428bb42025b30 (diff)
downloadpython-sievelib-86716afa17c3ddc5148efedc29ed7e15af0ba524.tar.gz
Make sure integers can be passed along as intended, as well
Diffstat (limited to 'sievelib')
-rw-r--r--sievelib/factory.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sievelib/factory.py b/sievelib/factory.py
index d75c871..f4e4bee 100644
--- a/sievelib/factory.py
+++ b/sievelib/factory.py
@@ -133,6 +133,8 @@ class FiltersSet(object):
action.check_next_arg("tag", arg)
elif isinstance(arg, list):
action.check_next_arg("stringlist", arg)
+ elif isinstance(arg, int):
+ action.check_next_arg("number", arg)
ifcontrol.addchild(action)
return ifcontrol