Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
close the file after reading
  • Loading branch information
abhisheksoni27 committed Jul 15, 2018
1 parent 175e47a commit c72f590
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions emotions.ipynb
Expand Up @@ -45,6 +45,7 @@
"def cleanText(filename): \n",
" chat = open(filename)\n",
" chatText = chat.read()\n",
" chat.close()\n",
"\n",
" # 01/09/17, 11:34 PM - Amfa:\n",
"\n",
Expand Down
1 change: 1 addition & 0 deletions utilities.py
Expand Up @@ -13,6 +13,7 @@
def cleanText(filename):
chat = open(filename)
chatText = chat.read()
chat.close()

# 01/09/17, 11:34 PM - Amfa:

Expand Down

0 comments on commit c72f590

Please sign in to comment.