Package SCons :: Module Action :: Class _ActionAction
[hide private]
[frames] | no frames]

Class _ActionAction

source code

object --+    
         |    
ActionBase --+
             |
            _ActionAction
Known Subclasses:

Base class for actions that create output objects.
Instance Methods [hide private]
 
__init__(self, cmdstr=<class 'SCons.Action._null'>, strfunction=<class 'SCons.Action._null'>, varlist=(), presub=<class 'SCons.Action._null'>, chdir=None, exitstatfunc=None, batch_key=None, targets='$TARGETS', **kw)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
print_cmd_line(self, s, target, source, env)
In python 3, and in some of our tests, sys.stdout is a String io object, and it takes unicode strings only In other cases it's a regular Python 2.x file object which takes strings (bytes), and if you pass those a unicode object they try to decode with 'ascii' codec which fails if the cmd line has any hi-bit-set chars. This code assumes s is a regular string, but should work if it's unicode too.
source code
 
__call__(self, target, source, env, exitstatfunc=<class 'SCons.Action._null'>, presub=<class 'SCons.Action._null'>, show=<class 'SCons.Action._null'>, execute=<class 'SCons.Action._null'>, chdir=<class 'SCons.Action._null'>, executor=None) source code

Inherited from ActionBase: __add__, __eq__, __radd__, batch_key, genstring, get_contents, get_targets, get_varlist, no_batch_key, presub_lines

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, cmdstr=<class 'SCons.Action._null'>, strfunction=<class 'SCons.Action._null'>, varlist=(), presub=<class 'SCons.Action._null'>, chdir=None, exitstatfunc=None, batch_key=None, targets='$TARGETS', **kw)
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)