Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-299: python client will be replaced, but fix a buglet in the interim

Mike Klaasd38a98d85a91
diff --git a/client/python/solr.py b/client/python/solr.py
index dc136b8e51b..9dc4be44961 100644
--- a/client/python/solr.py
+++ b/client/python/solr.py
@@ -121,7 +121,7 @@ class SolrConnection:
return self.encoder(key)[0] #to utf8
def delete(self, id):
- xstr = '<delete><id>'+self.escapeVal(`id`)+'</id></delete>'
+ xstr = '<delete><id>'+self.escapeVal(unicode(id))+'</id></delete>'
return self.doUpdateXML(xstr)
def deleteByQyery(self, query):