Parcourir la source

Merge branch 'master' of gitorious.org:radicale/radicale

Guillaume Ayoub il y a 15 ans
Parent
commit
2add4ae801
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      radicale/ical.py

+ 1 - 1
radicale/ical.py

@@ -214,7 +214,7 @@ class Calendar(object):
         headers = headers or self.headers or (
             Header("PRODID:-//Radicale//NONSGML Radicale Server//EN"),
             Header("VERSION:2.0"))
-        items = items or self.items
+        items = items if items is not None else self.items
 
         # Create folder if absent
         if not os.path.exists(os.path.dirname(self.path)):