Skip to content

Commit

Permalink
Better file management in Wikipedia module, and deleted the Encarta m…
Browse files Browse the repository at this point in the history
…odule.
  • Loading branch information
Sean B. Palmer committed Jul 22, 2011
1 parent f329429 commit c493e7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 56 deletions.
56 changes: 0 additions & 56 deletions modules/dict.py

This file was deleted.

2 changes: 2 additions & 0 deletions modules/wikipedia.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ def wikipedia(term, language='en', last=False):
f.seek(0)
gzip_file = gzip.GzipFile(fileobj=f)
bytes = gzip_file.read()
gzip_file.close()
f.close()

bytes = r_tr.sub('', bytes)

Expand Down

0 comments on commit c493e7c

Please sign in to comment.