If you can do a similar problem for a finite collection of discontinuities, then this problem requires almost the same proof. Because the sequence of discontinuities converges, almost all of the discontinuities are in a cell of any partition containing the limit point as an interior point.