Permalink
Browse files

SearchIO hmmer3-text: Don't overload the hit_list variable with diffe…

…rent datatypes

No functional change, just a rename of a variable to make the code less confusing

Signed-off-by: Kai Blin <kai.blin@biotech.uni-tuebingen.de>
  • Loading branch information...
1 parent 1b2025b commit 74d44f58472e8ceb53254b7cabe9b0ad82419ab8 Kai Blin committed with peterjc Dec 13, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 Bio/SearchIO/HmmerIO/hmmer3_text.py
@@ -155,10 +155,10 @@ def _parse_hit(self, qid):
is_included = True
# parse the hit table
- hit_list = []
+ hit_attr_list = []
while True:
if not self.line:
- return hit_list
+ return []
elif self.line.startswith(' ------ inclusion'):
is_included = False
self.line = read_forward(self.handle)
@@ -169,10 +169,10 @@ def _parse_hit(self, qid):
while True:
self.line = read_forward(self.handle)
if self.line.startswith('Internal pipeline'):
- assert len(hit_list) == 0
- return hit_list
+ assert len(hit_attr_list) == 0
+ return []
elif self.line.startswith('Domain annotation for each '):
- hit_list = self._create_hits(hit_list, qid)
+ hit_list = self._create_hits(hit_attr_list, qid)
return hit_list
# entering hit results row
# parse the columns into a list
@@ -198,7 +198,7 @@ def _parse_hit(self, qid):
'description': row[9],
'is_included': is_included,
}
- hit_list.append(hit_attrs)
+ hit_attr_list.append(hit_attrs)
self.line = read_forward(self.handle)

0 comments on commit 74d44f5

Please sign in to comment.