Skip to content

Commit e368ce8

Browse files
authored
Merge pull request #3 from shahid017/shahid017-patch-3
Reading text file updated to read with open
2 parents f85f11b + f5e1a0b commit e368ce8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

TextSpitter/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,5 @@ def DocxFileRead(self):
7272
return text
7373

7474
def TextFileRead(self):
75-
return self.get_contents()
75+
text = open(self.file).read()
76+
return text

0 commit comments

Comments
 (0)