Update for pathclass.Extension changes.

This commit is contained in:
voussoir 2020-02-03 20:25:23 -08:00
parent a5c8887f47
commit d5cd12000d

View file

@ -67,9 +67,7 @@ def fileprefix(
rename_pairs = []
for (index, filepath) in enumerate(filepaths):
extension = filepath.extension
if extension != '':
extension = '.' + extension
extension = filepath.extension.with_dot
newname = format.format(prefix=prefix, index=index, extension=extension)
if filepath.basename != newname: