Skip to content

Commit

Permalink
Fixed bug in handling of sequence-query.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fulton committed May 8, 1998
1 parent 1243e1f commit 2f85a01
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions DT_InSV.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
__doc__='''Sequence variables support
$Id: DT_InSV.py,v 1.3 1998/04/20 15:16:56 jim Exp $'''
__version__='$Revision: 1.3 $'[11:-2]
$Id: DT_InSV.py,v 1.4 1998/05/08 14:54:40 jim Exp $'''
__version__='$Revision: 1.4 $'[11:-2]

from string import lower, upper, rfind
from math import sqrt
Expand Down Expand Up @@ -169,7 +169,7 @@ def length(self, ignored):
l=self.data['sequence-length']=len(self.items)
return l

def query(self, ignored):
def query(self, *ignored):
if self.start_name_re is None: raise KeyError, 'sequence-query'
query_string=self.query_string
while query_string and query_string[:1] in '?&':
Expand Down Expand Up @@ -367,6 +367,8 @@ def __getitem__(self,key,
prefix=prefix[:-4]
try: return self.value(data[prefix+'-index'],suffix)
except: pass

if key=='sequence-query': return self.query()

raise KeyError, key

Expand Down Expand Up @@ -406,6 +408,9 @@ def opt(start,end,size,orphan,sequence):
##############################################################################
#
# $Log: DT_InSV.py,v $
# Revision 1.4 1998/05/08 14:54:40 jim
# Fixed bug in handling of sequence-query.
#
# Revision 1.3 1998/04/20 15:16:56 jim
# Fixed bug in backward support for sequence-index-even etc.
#
Expand Down

0 comments on commit 2f85a01

Please sign in to comment.