Skip to content

Commit

Permalink
A few minor bug fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
bendmorris authored and etal committed Feb 15, 2013
1 parent 76928e4 commit 2dd611b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
10 changes: 5 additions & 5 deletions Bio/Phylo/CDAOIO.py
Expand Up @@ -28,6 +28,10 @@
import os
import urlparse

class CDAOError(Exception):
"""Exception raised when CDAO object construction cannot continue."""
pass

try:
import RDF
import Redland
Expand All @@ -47,10 +51,6 @@ def node_uri(graph, uri):
else:
return RDF.Uri(urlparse.urljoin(graph, '#%s' % uri))

class CDAOError(Exception):
"""Exception raised when CDAO object construction cannot continue."""
pass


def new_storage():
'''Create a new in-memory Redland store for storing the RDF model.'''
Expand Down Expand Up @@ -270,7 +270,7 @@ def __init__(self, trees):
self.tree_counter = 0

def write(self, handle, mime_type='text/turtle', tree_uri='tree', context=None,
storage=None, record_complete_ancestry=False):
storage=None, record_complete_ancestry=False, **kwargs):
"""Write this instance's trees to a file handle.
Keywords:
Expand Down
5 changes: 2 additions & 3 deletions Bio/Phylo/_io.py
Expand Up @@ -30,9 +30,8 @@

try:
from Bio.Phylo import CDAOIO
supported_formats.update('cdao', CDAOIO)
except:
pass
supported_formats['cdao'] = CDAOIO
except: pass


def parse(file, format, **kwargs):
Expand Down

0 comments on commit 2dd611b

Please sign in to comment.