Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sass.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import sys
import warnings

from six import string_types, text_type, PY2, PY3
from six import string_types, text_type, PY2

import _sass
from sassutils._compat import collections_abc
Expand Down Expand Up @@ -52,7 +52,7 @@


def to_native_s(s):
if isinstance(s, bytes) and PY3: # pragma: no cover (py3)
if isinstance(s, bytes) and not PY2: # pragma: no cover (py3)
s = s.decode('UTF-8')
elif isinstance(s, text_type) and PY2: # pragma: no cover (py2)
s = s.encode('UTF-8')
Expand Down