@@ -1502,16 +1502,11 @@ def Detect(self, progs):
15021502 def Dictionary (self , * args ):
15031503 """Return construction variables from an environment.
15041504
1505- Args:
1506- args: (optional) variable names to look up
1507-
1508- Returns:
1509- if args omitted, the dictionary of all consvars.
1510- If one arg, the corresponding value is returned.
1511- If more than one arg, a list of values is returned.
1512-
1513- Raises:
1514- KeyError: if any of args is not in the construction env.
1505+ :param *args: (optional) variable names to look up
1506+ :returns: if args omitted, the dictionary of all constr. vars.
1507+ If one arg, the corresponding value is returned.
1508+ If more than one arg, a list of values is returned.
1509+ :raises KeyError: if any of *args is not in the construction env.
15151510
15161511 """
15171512 if not args :
@@ -1525,13 +1520,12 @@ def Dictionary(self, *args):
15251520 def Dump (self , key = None , format = 'pretty' ):
15261521 """ Serialize the construction variables to a string.
15271522
1528- Args:
1529- key: if None, format the whole dict of variables .
1530- Else format just the value for key (Default value = None)
1531- format: specify the format of the variables to be serialized:
1523+ :param key: if None, format the whole dict of variables.
1524+ Else look up and format just the value for key .
1525+
1526+ :param format: specify the format of the variables to be serialized:
15321527 - pretty: pretty-printed string.
15331528 - json: JSON-formatted string.
1534- (Default value = None)
15351529
15361530 """
15371531 if key :
@@ -1562,15 +1556,12 @@ def non_serializable(obj):
15621556
15631557
15641558 def FindIxes (self , paths , prefix , suffix ):
1565- """Search a list of paths for something that matches the prefix and suffix.
1566-
1567- Args:
1568- paths: the list of paths or nodes.
1569- prefix: construction variable for the prefix.
1570- suffix: construction variable for the suffix.
1571-
1572- Returns: the matched path or None
1559+ """
1560+ Search a list of paths for something that matches the prefix and suffix.
15731561
1562+ paths - the list of paths or nodes.
1563+ prefix - construction variable for the prefix.
1564+ suffix - construction variable for the suffix.
15741565 """
15751566
15761567 suffix = self .subst ('$' + suffix )
@@ -2026,7 +2017,7 @@ def Command(self, target, source, action, **kw):
20262017 pass
20272018 else :
20282019 del kw ['target_factory' ]
2029-
2020+
20302021 bld = SCons .Builder .Builder (** bkw )
20312022 return bld (self , target , source , ** kw )
20322023
0 commit comments