We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
not PY2
PY3
1 parent 0b3e8dc commit 1b44bb9Copy full SHA for 1b44bb9
sass.py
@@ -21,7 +21,7 @@
21
import sys
22
import warnings
23
24
-from six import string_types, text_type, PY2, PY3
+from six import string_types, text_type, PY2
25
26
import _sass
27
from sassutils._compat import collections_abc
@@ -52,7 +52,7 @@
52
53
54
def to_native_s(s):
55
- if isinstance(s, bytes) and PY3: # pragma: no cover (py3)
+ if isinstance(s, bytes) and not PY2: # pragma: no cover (py3)
56
s = s.decode('UTF-8')
57
elif isinstance(s, text_type) and PY2: # pragma: no cover (py2)
58
s = s.encode('UTF-8')
0 commit comments