Cleanup test code.
This commit is contained in:
parent
120d406355
commit
6480336d2c
|
@ -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()
|
||||||
|
|
||||||
|
|
||||||
# ====================================== #
|
# ====================================== #
|
||||||
|
|
Loading…
Reference in New Issue