Cleanup test code.

This commit is contained in:
Maw-Fox 2022-11-11 17:17:50 -07:00
parent 120d406355
commit 6480336d2c
1 changed files with 3 additions and 3 deletions

View File

@ -299,9 +299,9 @@ class ImageStore:
# gets caption by removing the extension from the filename and replacing it with .txt # gets caption by removing the extension from the filename and replacing it with .txt
def get_caption(self, ref: Tuple[int, int, int]) -> str: def get_caption(self, ref: Tuple[int, int, int]) -> str:
#filename = re.sub('\.[^/.]+$', '', self.image_files[ref[0]]) + '.txt' filename = re.sub('\.[^/.]+$', '', self.image_files[ref[0]]) + '.txt'
#with open(filename, 'r', encoding='UTF-8') as f: with open(filename, 'r', encoding='UTF-8') as f:
return '' return f.read()
# ====================================== # # ====================================== #