Skip to content

Commit

Permalink
refs #72876 removing the replace of newline to allow the comments in …
Browse files Browse the repository at this point in the history
…sparql queries
  • Loading branch information
ekulos committed Jun 9, 2016
1 parent 9cd330b commit 8b2c7af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/HISTORY.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Changelog

2.2.dev0 - (unreleased)
-----------------------
* Feature: Fix Comment in sparql queries
[lucas refs #72876]

2.1 - (2016-06-02)
------------------
Expand Down
4 changes: 3 additions & 1 deletion sparql.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,9 @@ def _queryString(self, statement):
Creates the REST query string from the statement and graphs.
"""
args = []
statement = statement.replace("\n", " ").encode('utf-8')
# refs #72876 removing the replace of newline to allow the comments in sparql queries
#statement = statement.replace("\n", " ").encode('utf-8')
statement = statement.encode('utf-8')

pref = ' '.join(["PREFIX %s: <%s> " % (p, self._prefix_map[p]) for p in self._prefix_map])

Expand Down

0 comments on commit 8b2c7af

Please sign in to comment.