projects
/
htsworkflow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b321753
)
Another tweak to allow parser detection to work on content-type text/plain urls
author
Diane Trout
<diane@caltech.edu>
Wed, 12 Sep 2012 18:30:26 +0000
(11:30 -0700)
committer
Diane Trout
<diane@caltech.edu>
Wed, 12 Sep 2012 18:30:26 +0000
(11:30 -0700)
htsworkflow/util/rdfhelp.py
patch
|
blob
|
history
diff --git
a/htsworkflow/util/rdfhelp.py
b/htsworkflow/util/rdfhelp.py
index 9f4a1074376f34c30ca4075e5f374af91585c9f9..d12b2c7e52792d0ca6674dbf7393b892501aebbd 100644
(file)
--- a/
htsworkflow/util/rdfhelp.py
+++ b/
htsworkflow/util/rdfhelp.py
@@
-270,8
+270,8
@@
def load_into_model(model, parser_name, path, ns=None):
if len(url_parts[0]) == 0 or url_parts[0] == 'file':
url_parts[0] = 'file'
url_parts[2] = os.path.abspath(url_parts[2])
-
if parser_name is None or parser_name == 'guess':
-
parser_name = guess_parser_by_extension(path)
+ if parser_name is None or parser_name == 'guess':
+ parser_name = guess_parser_by_extension(path)
url = urlunparse(url_parts)
logger.info("Opening {0} with parser {1}".format(url, parser_name))