Commits

David Chambers committed b6f0948

Tweaked `Document#__init__` slightly.

  • Participants
  • Parent commits e9da199
  • Branches 0.8

Comments (0)

Files changed (1)

         return document
 
     def __init__(self, filepath=None):
-        if filepath:
+        self.source = None
+        if filepath is not None:
             super(Document, self).__init__(path=filepath)
             with open(filepath) as f:
                 self.source = smart_unicode(f.read())
-        else:
-            self.source = None
 
         self._filepath = filepath
         self._tags = None