From bb6dfb0970e7cedae24ccf4c0f8fa30af3a092c6 Mon Sep 17 00:00:00 2001 From: freemansw1 Date: Thu, 14 Apr 2016 08:49:31 -0600 Subject: [PATCH] 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. --- awips/dataaccess/DataAccessLayer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awips/dataaccess/DataAccessLayer.py b/awips/dataaccess/DataAccessLayer.py index 4ab02b7..b6d7b59 100644 --- a/awips/dataaccess/DataAccessLayer.py +++ b/awips/dataaccess/DataAccessLayer.py @@ -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