Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Commit

Permalink
only use pure python for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lxyu committed May 14, 2015
1 parent 1e3a4a7 commit 6168106
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion thriftpy/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@

from __future__ import absolute_import

import platform
import types

import sys
PY3 = sys.version_info[0] == 3
PYPY = "__pypy__" in sys.modules
CYTHON = not PYPY # Cython always disabled in pypy

UNIX = platform.system() in ("Linux", "Darwin")
CYTHON = UNIX and not PYPY # Cython always disabled in pypy and windows

if PY3:
text_type = str
Expand Down

0 comments on commit 6168106

Please sign in to comment.