Better file management in Wikipedia module, and deleted the Encarta module.

This commit is contained in:
Sean B. Palmer
2011-07-22 15:53:16 +01:00
parent f329429de4
commit c493e7ca07
2 changed files with 2 additions and 56 deletions

View File

@@ -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)