Commit e7076b05 authored by chris's avatar chris

fixed bug in Index __getitem__() that caused it not to return

ResultLists
parent b5ae0084
...@@ -30,7 +30,7 @@ Example usage: ...@@ -30,7 +30,7 @@ Example usage:
print i['blah'] print i['blah']
$Id: InvertedIndex.py,v 1.34 1997/04/23 16:53:27 chris Exp $''' $Id: InvertedIndex.py,v 1.35 1997/04/23 16:56:31 chris Exp $'''
# Copyright # Copyright
# #
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne # Copyright 1996 Digital Creations, L.C., 910 Princess Anne
...@@ -82,6 +82,10 @@ $Id: InvertedIndex.py,v 1.34 1997/04/23 16:53:27 chris Exp $''' ...@@ -82,6 +82,10 @@ $Id: InvertedIndex.py,v 1.34 1997/04/23 16:53:27 chris Exp $'''
# (540) 371-6909 # (540) 371-6909
# #
# $Log: InvertedIndex.py,v $ # $Log: InvertedIndex.py,v $
# Revision 1.35 1997/04/23 16:56:31 chris
# fixed bug in Index __getitem__() that caused it not to return
# ResultLists
#
# Revision 1.34 1997/04/23 16:53:27 chris # Revision 1.34 1997/04/23 16:53:27 chris
# *** empty log message *** # *** empty log message ***
# #
...@@ -196,7 +200,7 @@ $Id: InvertedIndex.py,v 1.34 1997/04/23 16:53:27 chris Exp $''' ...@@ -196,7 +200,7 @@ $Id: InvertedIndex.py,v 1.34 1997/04/23 16:53:27 chris Exp $'''
# #
# #
# #
__version__='$Revision: 1.34 $'[11:-2] __version__='$Revision: 1.35 $'[11:-2]
import regex, string, copy import regex, string, copy
...@@ -616,7 +620,7 @@ class Index: ...@@ -616,7 +620,7 @@ class Index:
return List() return List()
try: try:
return index[key] return List(index[key])
except KeyError: except KeyError:
return List() return List()
...@@ -736,7 +740,7 @@ Example usage: ...@@ -736,7 +740,7 @@ Example usage:
print i['blah'] print i['blah']
$Id: InvertedIndex.py,v 1.34 1997/04/23 16:53:27 chris Exp $''' $Id: InvertedIndex.py,v 1.35 1997/04/23 16:56:31 chris Exp $'''
# Copyright # Copyright
# #
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne # Copyright 1996 Digital Creations, L.C., 910 Princess Anne
...@@ -788,6 +792,10 @@ $Id: InvertedIndex.py,v 1.34 1997/04/23 16:53:27 chris Exp $''' ...@@ -788,6 +792,10 @@ $Id: InvertedIndex.py,v 1.34 1997/04/23 16:53:27 chris Exp $'''
# (540) 371-6909 # (540) 371-6909
# #
# $Log: InvertedIndex.py,v $ # $Log: InvertedIndex.py,v $
# Revision 1.35 1997/04/23 16:56:31 chris
# fixed bug in Index __getitem__() that caused it not to return
# ResultLists
#
# Revision 1.34 1997/04/23 16:53:27 chris # Revision 1.34 1997/04/23 16:53:27 chris
# *** empty log message *** # *** empty log message ***
# #
...@@ -902,7 +910,7 @@ $Id: InvertedIndex.py,v 1.34 1997/04/23 16:53:27 chris Exp $''' ...@@ -902,7 +910,7 @@ $Id: InvertedIndex.py,v 1.34 1997/04/23 16:53:27 chris Exp $'''
# #
# #
# #
__version__='$Revision: 1.34 $'[11:-2] __version__='$Revision: 1.35 $'[11:-2]
import regex, string, copy import regex, string, copy
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment