def fileShouldBeIgnored ( filePath ) : fileDir , fileName = os . path . split ( os . path . normpath ( os . path . abspath ( filePath ) ) )
    if fileName in Config . getIgnoreFiles ( ) . union ( set ( [ Config . getDBFilename ( ) , Config . getLockFilename ( ) ] ) ) :
        return True
    else :
        return directoryShouldBeIgnored ( fileDir )

def fileShouldBeIgnored ( filePath ) :
    fileDir , fileName = os . path . split ( os . path . normpath ( os . path . abspath ( filePath ) ) )
    if fileName in Config . getIgnoreFiles ( ) . union ( set ( [ Config . getDBFilename ( ) , Config . getLockFilename ( ) ] ) ) :
        return True
    else :
        return directoryShouldBeIgnored ( fileDir )

次に示すpythonコードの誤りを修正しなさい。