summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Sig/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/SCons/Sig/__init__.py')
-rw-r--r--src/engine/SCons/Sig/__init__.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/engine/SCons/Sig/__init__.py b/src/engine/SCons/Sig/__init__.py
index 2c8edad..a13557a 100644
--- a/src/engine/SCons/Sig/__init__.py
+++ b/src/engine/SCons/Sig/__init__.py
@@ -61,8 +61,9 @@ class SConsignEntry:
if arr[2] == '-': self.csig = None
else: self.csig = module.from_string(arr[2])
- if arr[3] == '-': self.implicit = None
- else: self.implicit = arr[3]
+ if len(arr) < 4: self.implicit = ''
+ elif arr[3] == '-': self.implicit = None
+ else: self.implicit = arr[3]
except IndexError:
pass
@@ -82,8 +83,10 @@ class SConsignEntry:
return '%s %s %s %s' % (timestamp, bsig, csig, implicit)
def get_implicit(self):
- if not self.implicit:
+ if self.implicit is None:
return None
+ elif self.implicit == '':
+ return []
else:
return string.split(self.implicit, '\0')