From 5d40e26201ed87ae8276a77e263b8cbe50598703 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Thu, 6 Nov 2008 11:07:42 -0800 Subject: 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 --- manifest.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'manifest.py') diff --git a/manifest.py b/manifest.py index 2ac1453a..9137371f 100644 --- a/manifest.py +++ b/manifest.py @@ -241,6 +241,8 @@ class Manifest(object): 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): -- cgit v1.2.3-54-g00ecf