diff -r 60b48ab891fa -r 0bf517e60f54 eric6/Plugins/CheckerPlugins/CodeStyleChecker/MiscellaneousChecker.py --- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/MiscellaneousChecker.py Thu Sep 19 19:22:43 2019 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/MiscellaneousChecker.py Thu Sep 19 19:39:04 2019 +0200 @@ -927,7 +927,7 @@ """ Private method to check use of naive datetime functions. """ - if sys.version_info[0] == 3: + if sys.version_info[0] >= 3: # this check is only performed for Python 3 # step 1: generate an augmented node tree containing parent info