Let $\gamma$ be a closed path in the plane $\mathbb{C}$ and let $a\in \mathbb{C}$ which does not belong to the image of $\gamma$. The winding number (or index) is defined as $$I(\gamma, a)=\int_{\gamma}\frac{dz}{z-a}.$$ Cartan's book says that, if $\gamma$ is fixed, the map $a\mapsto I(\gamma, a)$ is locally constant because $dz/(z-a)$ is a closed form and for any closed form $\omega$,$$\int_{\gamma_1}\omega=\int_{\gamma_2}\omega$$ where $\gamma_1, \gamma_2$ are homotopic closed paths.
I know how to show the map $a\mapsto I(\gamma, a)$ is locally constant (for example differentiating under the integral sign), but I can't see how Cartan uses the fact above to show it.