Commit 420493f6 authored by Jason R. Coombs's avatar Jason R. Coombs

More simply resolve _dont_write_bytecode.

parent 352f5f5c
......@@ -94,10 +94,5 @@ def findall(dir = os.curdir):
distutils.filelist.findall = findall # fix findall bug in distutils.
# sys.dont_write_bytecode was introduced in Python 2.6.
_dont_write_bytecode = (
(hasattr(sys, "dont_write_bytecode") and sys.dont_write_bytecode)
or (
not hasattr(sys, "dont_write_bytecode")
and os.environ.get("PYTHONDONTWRITEBYTECODE")
)
)
_dont_write_bytecode = getattr(sys, 'dont_write_bytecode',
bool(os.environ.get("PYTHONDONTWRITEBYTECODE")))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment