##// END OF EJS Templates
Fix Python 3.3 compatibility
bodqhrohro -
r1829:ffa6e90d default
parent child Browse files
Show More
@@ -127,6 +127,6 b' def delete_file(instance, **kwargs):'
127 if instance.mimetype in FILE_TYPES_IMAGE:
127 if instance.mimetype in FILE_TYPES_IMAGE:
128 for size in THUMB_SIZES:
128 for size in THUMB_SIZES:
129 file_name_parts = instance.file.name.split('.')
129 file_name_parts = instance.file.name.split('.')
130 thumb_file = MEDIA_ROOT + '{}.{}x{}.{}'.format(file_name_parts[0], *size, file_name_parts[1])
130 thumb_file = MEDIA_ROOT + '{}.{}x{}.{}'.format(file_name_parts[0], size[0], size[1], file_name_parts[1])
131 os.remove(thumb_file)
131 os.remove(thumb_file)
132
132
General Comments 0
You need to be logged in to leave comments. Login now