def chunksNeedingLighting(self):
        """
        Generator containing all chunks that need lighting.
        :yield: int (cx, cz) Coordinates of the chunk
        """
        for chunkCoords in self._loadedChunks.keys():
            chunk = self._loadedChunks[chunkCoords]
            if chunk.needsLighting:
                yield chunk.chunkPosition

        Generator containing all chunks that need lighting.
        :yield: int (cx, cz) Coordinates of the chunk
        
pymclevel/leveldbpocket.py