Skip to content

Commit

Permalink
other python3 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianTrigodet committed Jan 16, 2020
1 parent 783f296 commit 4d95d02
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Oligotyping/utils/blast.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def get_results_dict(self, mismatches = None, gaps = None, min_identity = None,
b6 = b6lib.B6Source(self.output)

ids_with_hits = set()
while next(b6):
while b6.next():
if b6.entry.query_id == b6.entry.subject_id:
continue

Expand Down
4 changes: 2 additions & 2 deletions Oligotyping/utils/html/for_decomposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from Oligotyping.utils.utils import pretty_print
from Oligotyping.utils.utils import get_samples_dict_from_environment_file
from Oligotyping.utils.random_colors import get_list_of_colors
from .error import HTMLError
from Oligotyping.utils.html.error import HTMLError


try:
Expand Down Expand Up @@ -253,7 +253,7 @@ def get_figures_dict(html_dict_prefix):
index_page = os.path.join(html_output_directory, 'index.html')
rendered = render_to_string('index_for_decomposition.tmpl', html_dict)

open(index_page, 'w').write(rendered.encode("utf-8"))
open(index_page, 'wb').write(rendered.encode("utf-8"))

return index_page

Expand Down
2 changes: 1 addition & 1 deletion Oligotyping/utils/html/for_oligotyping.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from Oligotyping.utils.utils import pretty_print
from Oligotyping.utils.utils import get_samples_dict_from_environment_file
from Oligotyping.utils.random_colors import get_list_of_colors
from .error import HTMLError
from Oligotyping.utils.html.error import HTMLError


try:
Expand Down

0 comments on commit 4d95d02

Please sign in to comment.