Skip to content
This repository has been archived by the owner on Feb 6, 2019. It is now read-only.

Commit

Permalink
compat for python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
firegrass committed Jun 11, 2016
1 parent 121ae12 commit 21ea4cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ravendb/indexes/querier.py
@@ -1,5 +1,5 @@
import requests

from six import string_types

class querier(object):

Expand All @@ -12,7 +12,7 @@ def query(self, query = '', fetch = {}):
qs = {}
genQuery = ''

if not isinstance(query, basestring):
if not isinstance(query, string_types):
parsedQuery = ''
for key, value in query.items():
genQuery = '{0} AND {1}:{2}'.format(parsedQuery, key, value)
Expand All @@ -32,7 +32,7 @@ def query(self, query = '', fetch = {}):
self._client.url,
self._client.database,
self._indexId
)
)

request = self._client._get(queryUrl, params=qs)

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
@@ -1 +1,2 @@
requests==2.9.1
six

0 comments on commit 21ea4cc

Please sign in to comment.