Skip to content

Commit

Permalink
FIX Python2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
xgrg committed Oct 8, 2020
1 parent 9a60a22 commit bf05873
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyxnat/core/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
from io import StringIO
try:
unicode
import sys
reload(sys) # Reload does the trick!
sys.setdefaultencoding('UTF8')
except NameError:
unicode = str
from six import string_types
Expand Down

0 comments on commit bf05873

Please sign in to comment.