Skip to content

Commit

Permalink
Revert previous fix which introduced new problems; now default to an …
Browse files Browse the repository at this point in the history
…empty string ignoring the Integer specification
  • Loading branch information
chapmanb committed Oct 7, 2009
1 parent 4dca8a2 commit 1fff803
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Bio/Entrez/Parser.py
Expand Up @@ -187,11 +187,8 @@ def endElement(self, name):
self.object = self.stack.pop()
if self.object.itemtype in ("List", "Structure"):
return
elif self.object.itemtype=="Integer":
if value:
value = IntegerElement(value)
else:
value = -1
elif self.object.itemtype=="Integer" and value:
value = IntegerElement(value)
else:
# Convert Unicode strings to plain strings if possible
try:
Expand Down

0 comments on commit 1fff803

Please sign in to comment.