Skip to content

Commit b199688

Browse files
Don't use rest_framework.compat for StringIO, smart_text. Fixes jpadilla#3
1 parent 0953a7d commit b199688

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rest_framework_xml/renderers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55

66
from django.utils import six
77
from django.utils.xmlutils import SimplerXMLGenerator
8-
from rest_framework.compat import StringIO, smart_text
8+
from django.utils.six.moves import StringIO
9+
from django.utils.encoding import smart_text
910
from rest_framework.renderers import BaseRenderer
1011

1112

0 commit comments

Comments
 (0)