#NEWLINE# def is_locked( self ) : #NEWLINE# #INDENT# cursor = self . connection . cursor ( ) #NEWLINE# cursor . execute ( 'select * from locks  where lock_file = ?' , ( self . lock_file , ) ) #NEWLINE# rows = cursor . fetchall ( ) #NEWLINE# return ( not ( not rows ) )