def signature(self, block_size=None):
        "Calculates signature for local file."
        kwargs = {}
        if block_size:
            kwargs['block_size'] = block_size
        return librsync.signature(open(self.path, 'rb'), **kwargs)
def signature ( self , block_size = None ) : kwargs = { } if block_size : kwargs [ 'block_size' ] = block_size return librsync . signature ( open ( self . path , 'rb' ) , ** kwargs )
Calculates signature for local file.