Skip to content

Commit

Permalink
Fixes piskvorky#1869 , Mmcorpus file-like object behaviour fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
sj29-innovate committed Feb 21, 2018
1 parent eaf5b5a commit 040b4ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gensim/matutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@ def open_file(self, input):
raise
finally:
if not exc and isinstance(self.input, string_types):
exit(mgr, None, None, None)
type(mgr).__exit__(mgr, None, None, None)

def __init__(self, input, transposed=True):
"""
Expand Down

0 comments on commit 040b4ff

Please sign in to comment.