« Previous | Next » 

Revision 738436bf

ID738436bf45dc1c6a82a6fac70cbc09099bf210c1

Added by Thomas Thrainer almost 8 years ago

Always return tuples in Expand*Name

ExpandNodeName and ExpandInstanceName now always return a tuple. If the
node/instance was not found, (None, None) is returned. This fixes bugs
where callers blindly assign the return value of those methods to
multiple variables without checking if it was None.

Signed-off-by: Thomas Thrainer <>
Reviewed-by: Helga Velroyen <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences