MAINT: spatial: remove unnecessary set calls in [cp]dist
MAINT: spatial: remove unnecessary set calls in [cp]dist

These calls actually slowed down cdist and pdist calls by several
microseconds: every call to Mahalanobis had to construct a dozen
sets before entering the right case.

Also a style change missed in 3e9e88bc250e09a9d86afcf48e4c4737c69f081f.

rgommers/scipy,WarrenWeckesser/scipy,pizzathief/scipy,pyramania/scipy,maniteja123/scipy,matthewalbani/scipy,argriffing/scipy,tylerjereddy/scipy,mdhaber/scipy,zerothi/scipy,larsmans/scipy,maniteja123/scipy,Gillu13/scipy,gfyoung/scipy,josephcslater/scipy,jamestwebber/scipy,person142/scipy,Eric89GXL/scipy,endolith/scipy,zerothi/scipy,scipy/scipy,Newman101/scipy,zerothi/scipy,haudren/scipy,Stefan-Endres/scipy,haudren/scipy,nmayorov/scipy,andyfaff/scipy,sriki18/scipy,anielsen001/scipy,mikebenfield/scipy,endolith/scipy,Gillu13/scipy,zerothi/scipy,pbrod/scipy,surhudm/scipy,argriffing/scipy,kleskjr/scipy,haudren/scipy,woodscn/scipy,dominicelse/scipy,scipy/scipy,vigna/scipy,nmayorov/scipy,bkendzior/scipy,matthewalbani/scipy,anntzer/scipy,gfyoung/scipy,anntzer/scipy,jamestwebber/scipy,anielsen001/scipy,pyramania/scipy,Eric89GXL/scipy,perimosocordiae/scipy,dominicelse/scipy,argriffing/scipy,pyramania/scipy,sriki18/scipy,pizzathief/scipy,gfyoung/scipy,e-q/scipy,befelix/scipy,jjhelmus/scipy,person142/scipy,niknow/scipy,nonhermitian/scipy,surhudm/scipy,chatcannon/scipy,Newman101/scipy,Stefan-Endres/scipy,Gillu13/scipy,matthew-brett/scipy,person142/scipy,lhilt/scipy,WarrenWeckesser/scipy,woodscn/scipy,jor-/scipy,aeklant/scipy,gdooper/scipy,bkendzior/scipy,jjhelmus/scipy,Eric89GXL/scipy,sriki18/scipy,behzadnouri/scipy,vigna/scipy,Stefan-Endres/scipy,matthewalbani/scipy,ilayn/scipy,pbrod/scipy,ilayn/scipy,apbard/scipy,matthew-brett/scipy,aeklant/scipy,maniteja123/scipy,tylerjereddy/scipy,larsmans/scipy,pizzathief/scipy,e-q/scipy,behzadnouri/scipy,gertingold/scipy,apbard/scipy,chatcannon/scipy,mdhaber/scipy,pyramania/scipy,anielsen001/scipy,arokem/scipy,woodscn/scipy,pizzathief/scipy,lhilt/scipy,gfyoung/scipy,grlee77/scipy,endolith/scipy,pizzathief/scipy,gertingold/scipy,woodscn/scipy,surhudm/scipy,pyramania/scipy,jor-/scipy,surhudm/scipy,grlee77/scipy,aeklant/scipy,surhudm/scipy,chatcannon/scipy,aeklant/scipy,perimosocordiae/scipy,kalvdans/scipy,pschella/scipy,bkendzior/scipy,rgommers/scipy,woodscn/scipy,jakevdp/scipy,pbrod/scipy,mikebenfield/scipy,anntzer/scipy,kleskjr/scipy,jor-/scipy,mikebenfield/scipy,larsmans/scipy,anntzer/scipy,behzadnouri/scipy,jjhelmus/scipy,WarrenWeckesser/scipy,kleskjr/scipy,andyfaff/scipy,mdhaber/scipy,matthewalbani/scipy,Eric89GXL/scipy,larsmans/scipy,josephcslater/scipy,argriffing/scipy,ilayn/scipy,aarchiba/scipy,kleskjr/scipy,anntzer/scipy,gertingold/scipy,woodscn/scipy,haudren/scipy,dominicelse/scipy,mikebenfield/scipy,person142/scipy,mdhaber/scipy,Stefan-Endres/scipy,Gillu13/scipy,grlee77/scipy,matthew-brett/scipy,arokem/scipy,mdhaber/scipy,surhudm/scipy,niknow/scipy,tylerjereddy/scipy,maniteja123/scipy,dominicelse/scipy,josephcslater/scipy,lhilt/scipy,chatcannon/scipy,mikebenfield/scipy,behzadnouri/scipy,jamestwebber/scipy,befelix/scipy,endolith/scipy,endolith/scipy,kalvdans/scipy,jjhelmus/scipy,jakevdp/scipy,andyfaff/scipy,kleskjr/scipy,vigna/scipy,aarchiba/scipy,josephcslater/scipy,Stefan-Endres/scipy,scipy/scipy,kalvdans/scipy,Gillu13/scipy,befelix/scipy,apbard/scipy,gdooper/scipy,rgommers/scipy,dominicelse/scipy,grlee77/scipy,nmayorov/scipy,josephcslater/scipy,andyfaff/scipy,jakevdp/scipy,bkendzior/scipy,anielsen001/scipy,haudren/scipy,ilayn/scipy,e-q/scipy,behzadnouri/scipy,arokem/scipy,matthew-brett/scipy,argriffing/scipy,jakevdp/scipy,gdooper/scipy,aarchiba/scipy,niknow/scipy,larsmans/scipy,e-q/scipy,perimosocordiae/scipy,niknow/scipy,perimosocordiae/scipy,jakevdp/scipy,Stefan-Endres/scipy,maniteja123/scipy,e-q/scipy,jor-/scipy,argriffing/scipy,befelix/scipy,vigna/scipy,matthewalbani/scipy,scipy/scipy,anielsen001/scipy,aarchiba/scipy,nonhermitian/scipy,matthew-brett/scipy,tylerjereddy/scipy,haudren/scipy,bkendzior/scipy,WarrenWeckesser/scipy,mdhaber/scipy,jor-/scipy,zerothi/scipy,kalvdans/scipy,Gillu13/scipy,gertingold/scipy,perimosocordiae/scipy,rgommers/scipy,Newman101/scipy,jjhelmus/scipy,pbrod/scipy,lhilt/scipy,scipy/scipy,Newman101/scipy,kalvdans/scipy,kleskjr/scipy,gdooper/scipy,nonhermitian/scipy,gfyoung/scipy,gertingold/scipy,pschella/scipy,Eric89GXL/scipy,pbrod/scipy,scipy/scipy,andyfaff/scipy,chatcannon/scipy,niknow/scipy,person142/scipy,pschella/scipy,gdooper/scipy,nonhermitian/scipy,anntzer/scipy,perimosocordiae/scipy,maniteja123/scipy,aarchiba/scipy,sriki18/scipy,grlee77/scipy,jamestwebber/scipy,behzadnouri/scipy,tylerjereddy/scipy,pschella/scipy,niknow/scipy,jamestwebber/scipy,pschella/scipy,rgommers/scipy,pbrod/scipy,sriki18/scipy,larsmans/scipy,Eric89GXL/scipy,nmayorov/scipy,chatcannon/scipy,sriki18/scipy,ilayn/scipy,arokem/scipy,Newman101/scipy,andyfaff/scipy,nonhermitian/scipy,Newman101/scipy,WarrenWeckesser/scipy,lhilt/scipy,apbard/scipy,nmayorov/scipy,endolith/scipy,zerothi/scipy,anielsen001/scipy,WarrenWeckesser/scipy,vigna/scipy,ilayn/scipy,aeklant/scipy,befelix/scipy,arokem/scipy,apbard/scipy