yet another markmin improvement, thanks Vladyslav

This commit is contained in:
mdipierro
2012-07-17 12:35:57 -05:00
parent f3ea2d1cc6
commit 598d979502
5 changed files with 26 additions and 29 deletions
+3 -6
View File
@@ -40,18 +40,15 @@ import imp
import logging
logger = logging.getLogger("web2py")
import rewrite
import platform
try:
import py_compile
except:
logger.warning('unable to import py_compile')
is_pypy = hasattr(platform,'python_implementation') and \
platform.python_implementation() == 'PyPy'
settings.global_settings.is_pypy = is_pypy
is_gae = settings.global_settings.web2py_runtime_gae
is_jython = settings.global_settings.is_jython = 'java' in sys.platform.lower() or hasattr(sys, 'JYTHON_JAR') or str(sys.copyright).find('Jython') > 0
is_pypy = settings.global_settings.is_pypy
is_gae = settings.global_settings.web2py_runtime_gae
is_jython = settings.global_settings.is_jython
TEST_CODE = \
r"""