Skip to content

Commit 1b44bb9

Browse files
committed
Use not PY2 instead of PY3 for python4.x compat
1 parent 0b3e8dc commit 1b44bb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sass.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import sys
2222
import warnings
2323

24-
from six import string_types, text_type, PY2, PY3
24+
from six import string_types, text_type, PY2
2525

2626
import _sass
2727
from sassutils._compat import collections_abc
@@ -52,7 +52,7 @@
5252

5353

5454
def to_native_s(s):
55-
if isinstance(s, bytes) and PY3: # pragma: no cover (py3)
55+
if isinstance(s, bytes) and not PY2: # pragma: no cover (py3)
5656
s = s.decode('UTF-8')
5757
elif isinstance(s, text_type) and PY2: # pragma: no cover (py2)
5858
s = s.encode('UTF-8')

0 commit comments

Comments
 (0)