mdpage/diffpatch.py
def can_patch(self, filename, content):
        """ Check if specified filename can be patched. Returns None if file can
        not be found among source filenames. False if patch can not be applied
        clearly. True otherwise.
        :returns: True, False or None
        """
        for p in self:
            if filename == p.source:
                return self._match_file_hunks(StringIO(content), p.hunks)
        return False
 Check if specified filename can be patched. Returns None if file can
        not be found among source filenames. False if patch can not be applied
        clearly. True otherwise.
        :returns: True, False or None
        
Check if specified filename can be patched. Returns None if file can
not be found among source filenames. False if patch can not be applied
clearly. True otherwise.
Check if specified filename can be patched . Returns None if file can not be found among source filenames . False if patch can not be applied clearly . True otherwise .
def can_patch(self, filename, content):
        for p in self:
            if filename == p.source:
                return self._match_file_hunks(StringIO(content), p.hunks)
        return False
def can_patch ( self , filename , content ) : for p in self : if filename == p . source : return self . _match_file_hunks ( StringIO ( content ) , p . hunks ) return False
Check if specified filename can be patched.
Check if specified filename can be patched .
""" Check if specified filename can be patched. Returns None if file can
        not be found among source filenames. False if patch can not be applied
        clearly. True otherwise.
        :returns: True, False or None
        """
True, False or None
True False or None
self
filename
content