Commit aba6f5a3 authored by Jim Fulton's avatar Jim Fulton

Changed some string literals for emacs hilit.

parent 7d3414ed
...@@ -30,7 +30,7 @@ Example usage: ...@@ -30,7 +30,7 @@ Example usage:
print i['blah'] print i['blah']
$Id: InvertedIndex.py,v 1.47 1997/05/08 19:10:43 jim Exp $''' $Id: InvertedIndex.py,v 1.48 1997/05/08 19:12:13 jim Exp $'''
# Copyright # Copyright
# #
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne # Copyright 1996 Digital Creations, L.C., 910 Princess Anne
...@@ -82,6 +82,9 @@ $Id: InvertedIndex.py,v 1.47 1997/05/08 19:10:43 jim Exp $''' ...@@ -82,6 +82,9 @@ $Id: InvertedIndex.py,v 1.47 1997/05/08 19:10:43 jim Exp $'''
# (540) 371-6909 # (540) 371-6909
# #
# $Log: InvertedIndex.py,v $ # $Log: InvertedIndex.py,v $
# Revision 1.48 1997/05/08 19:12:13 jim
# Changed some string literals for emacs hilit.
#
# Revision 1.47 1997/05/08 19:10:43 jim # Revision 1.47 1997/05/08 19:10:43 jim
# Changed some string literals for emacs hilit. # Changed some string literals for emacs hilit.
# Added minimal index variety. # Added minimal index variety.
...@@ -241,7 +244,7 @@ $Id: InvertedIndex.py,v 1.47 1997/05/08 19:10:43 jim Exp $''' ...@@ -241,7 +244,7 @@ $Id: InvertedIndex.py,v 1.47 1997/05/08 19:10:43 jim Exp $'''
# #
# #
# #
__version__='$Revision: 1.47 $'[11:-2] __version__='$Revision: 1.48 $'[11:-2]
import regex, string, copy import regex, string, copy
...@@ -648,7 +651,7 @@ class Index: ...@@ -648,7 +651,7 @@ class Index:
__traceback_info__=i, d, src, srckey __traceback_info__=i, d, src, srckey
for s in src: for s in src:
if s[0] == '"': if s[0] == '\"':
self.subindex(s[1:-1],d,i) self.subindex(s[1:-1],d,i)
else: else:
d[s]=1 d[s]=1
...@@ -720,7 +723,7 @@ class Index: ...@@ -720,7 +723,7 @@ class Index:
except KeyError: except KeyError:
break break
else: else:
if ((key is not None) and (key[0] == '"')): if ((key is not None) and (key[0] == '\"')):
ws = WordSequence(key, self.synstop) ws = WordSequence(key, self.synstop)
ws = map(lambda x, self = self: self[x], ws) ws = map(lambda x, self = self: self[x], ws)
return reduce(lambda x, y: x.near(y), ws) return reduce(lambda x, y: x.near(y), ws)
......
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