Use os.path.splitext() instead of custom logic
Use os.path.splitext() instead of custom logic

wagtail/wagtail,kaedroho/wagtail,iansprice/wagtail,nilnvoid/wagtail,kurtrwall/wagtail,torchbox/wagtail,davecranwell/wagtail,nilnvoid/wagtail,gasman/wagtail,nrsimha/wagtail,rsalmaso/wagtail,FlipperPA/wagtail,takeflight/wagtail,kaedroho/wagtail,chrxr/wagtail,rsalmaso/wagtail,nilnvoid/wagtail,Tivix/wagtail,jnns/wagtail,jnns/wagtail,mikedingjan/wagtail,kaedroho/wagtail,nutztherookie/wagtail,Toshakins/wagtail,thenewguy/wagtail,mikedingjan/wagtail,nrsimha/wagtail,nimasmi/wagtail,JoshBarr/wagtail,Tivix/wagtail,timorieber/wagtail,nilnvoid/wagtail,gogobook/wagtail,takeflight/wagtail,FlipperPA/wagtail,FlipperPA/wagtail,mixxorz/wagtail,kaedroho/wagtail,gasman/wagtail,nutztherookie/wagtail,wagtail/wagtail,hanpama/wagtail,chrxr/wagtail,wagtail/wagtail,mikedingjan/wagtail,torchbox/wagtail,gogobook/wagtail,quru/wagtail,quru/wagtail,mayapurmedia/wagtail,inonit/wagtail,rsalmaso/wagtail,davecranwell/wagtail,nealtodd/wagtail,timorieber/wagtail,thenewguy/wagtail,kaedroho/wagtail,Toshakins/wagtail,Tivix/wagtail,kurtw/wagtail,nimasmi/wagtail,zerolab/wagtail,nealtodd/wagtail,iansprice/wagtail,hamsterbacke23/wagtail,rsalmaso/wagtail,gasman/wagtail,hamsterbacke23/wagtail,mixxorz/wagtail,nutztherookie/wagtail,serzans/wagtail,kurtw/wagtail,rsalmaso/wagtail,nrsimha/wagtail,hanpama/wagtail,gogobook/wagtail,thenewguy/wagtail,mayapurmedia/wagtail,chrxr/wagtail,Toshakins/wagtail,iansprice/wagtail,kurtw/wagtail,wagtail/wagtail,hamsterbacke23/wagtail,jnns/wagtail,quru/wagtail,torchbox/wagtail,timorieber/wagtail,mayapurmedia/wagtail,thenewguy/wagtail,serzans/wagtail,thenewguy/wagtail,zerolab/wagtail,Tivix/wagtail,hanpama/wagtail,wagtail/wagtail,davecranwell/wagtail,nimasmi/wagtail,iansprice/wagtail,gasman/wagtail,mixxorz/wagtail,JoshBarr/wagtail,serzans/wagtail,mixxorz/wagtail,kurtrwall/wagtail,nutztherookie/wagtail,davecranwell/wagtail,hanpama/wagtail,takeflight/wagtail,inonit/wagtail,nealtodd/wagtail,nealtodd/wagtail,kurtrwall/wagtail,mikedingjan/wagtail,inonit/wagtail,FlipperPA/wagtail,mixxorz/wagtail,zerolab/wagtail,kurtw/wagtail,kurtrwall/wagtail,serzans/wagtail,JoshBarr/wagtail,nrsimha/wagtail,timorieber/wagtail,nimasmi/wagtail,JoshBarr/wagtail,jnns/wagtail,zerolab/wagtail,mayapurmedia/wagtail,hamsterbacke23/wagtail,gasman/wagtail,Toshakins/wagtail,chrxr/wagtail,inonit/wagtail,torchbox/wagtail,gogobook/wagtail,zerolab/wagtail,quru/wagtail,takeflight/wagtail