Package pyffi :: Module spells :: Class SpellApplyPatch
[hide private]
[frames] | no frames]

Class SpellApplyPatch

source code

object --+    
         |    
     Spell --+
             |
            SpellApplyPatch

A spell for applying a patch on files.
Instance Methods [hide private]
bool
datainspect(self)
There is no need to read the whole file, so we apply the patch already at inspection stage, and stop the spell process by returning False.
source code

Inherited from Spell: __init__, branchentry, branchexit, branchinspect, dataentry, dataexit, recurse

Inherited from Spell (private): _branchinspect, _datainspect

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

Class Methods [hide private]

Inherited from Spell: get_toast_stream, toastentry, toastexit

Class Variables [hide private]
  SPELLNAME = 'applypatch'
A str describing how to refer to the spell from the command line.

Inherited from Spell: READONLY, changed, data, stream, toaster

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

datainspect(self)

source code 
There is no need to read the whole file, so we apply the patch already at inspection stage, and stop the spell process by returning False.
Returns: bool
False
Overrides: Spell.datainspect