Skip to content

Commit e58d127

Browse files
author
Laurie Clark-Michalek
committed
Support the lack of a basestring in python 3.x
1 parent 27a0c65 commit e58d127

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lucenequerybuilder/query.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# -*- coding: utf-8 -*-
2+
import sys
3+
4+
if sys.version_info > (3, 0):
5+
basestring = str
26

37

48
class Q(object):

0 commit comments

Comments
 (0)