commit | 5d40e26201ed87ae8276a77e263b8cbe50598703 | [log] [tgz] |
---|---|---|
author | Shawn O. Pearce <sop@google.com> | Thu Nov 06 11:07:42 2008 -0800 |
committer | Shawn O. Pearce <sop@google.com> | Thu Nov 06 11:23:27 2008 -0800 |
tree | 3130b4b5db0466e07ed9fa4e7bb2383dc91954f6 | |
parent | 70939e2f73bf118c89cf4af4988dba807c50a0ce [diff] |
Treat missing attributes as None when parsing the manifest Some of our code assumes that a property is None. Signed-off-by: Shawn O. Pearce <sop@google.com>
diff --git a/manifest.py b/manifest.py index 2ac1453..9137371 100644 --- a/manifest.py +++ b/manifest.py
@@ -241,6 +241,8 @@ d = _Default() d.remote = self._get_remote(node) d.revision = node.getAttribute('revision') + if d.revision == '': + d.revision = None return d def _ParseProject(self, node):