Permalink
Browse files

Revert "Hack for Bio.SearchIO blast-xml encoding"

This reverts commit 06cb6da.

Seemed to break under other platforms.
  • Loading branch information...
1 parent 06cb6da commit 7229fe6fa8ef6ff06604e471903a340deaba1663 @peterjc peterjc committed Nov 30, 2012
Showing with 1 addition and 8 deletions.
  1. +1 −8 Bio/SearchIO/__init__.py
View
@@ -299,15 +299,8 @@ def parse(handle, format=None, **kwargs):
# get the iterator object and do error checking
iterator = get_processor(format, _ITERATOR_MAP)
- # HACK: force BLAST xml files to be opened using utf-8 encoding
- # BLAST XML files do not specify this, which may lead to problems
- # in some python versions
- handle_kwargs = {}
- if format == 'blast-xml':
- handle_kwargs['encoding'] = 'utf-8'
-
# and start iterating
- with as_handle(handle, 'rU', **handle_kwargs) as source_file:
+ with as_handle(handle, 'rU') as source_file:
generator = iterator(source_file, **kwargs)
for qresult in generator:

0 comments on commit 7229fe6

Please sign in to comment.