removed depreciated python 3 feature

has_key has been removed from dict and no longer works as of Python
3.5. in is the new preferred syntax.
This commit is contained in:
freemansw1 2016-04-14 08:49:31 -06:00
parent b9a9ac784e
commit bb6dfb0970

View file

@ -47,7 +47,7 @@ import subprocess
THRIFT_HOST = "edex"
USING_NATIVE_THRIFT = False
if sys.modules.has_key('jep'):
if 'jep' in sys.modules:
# intentionally do not catch if this fails to import, we want it to
# be obvious that something is configured wrong when running from within
# Java instead of allowing false confidence and fallback behavior