Skip to content

Commit

Permalink
[CPCLOUD-3156] Syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Vogel committed Apr 25, 2024
1 parent 90afb86 commit 5e84dcd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions agent360/agent360.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import StringIO
from Queue import Queue, Empty

if sys.version_info[0] >= 3 and sys.version_info[1] >= 4:
if sys.version_info >= (3,4):
import importlib.util
else:
import imp
Expand Down Expand Up @@ -250,7 +250,7 @@ def test_plugins(plugins=[]):
print('%s:' % plugin_name)

try:
if sys.version_info[0] >= 3 and sys.version_info[1] >= 4:
if sys.version_info >= (3,4):
spec = importlib.util.find_spec(plugin_name)
else:
fp, pathname, description = imp.find_module(plugin_name)
Expand All @@ -259,7 +259,7 @@ def test_plugins(plugins=[]):
continue

try:
if sys.version_info[0] >= 3 and sys.version_info[1] >= 4:
if sys.version_info >= (3,4):
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)
else:
Expand Down Expand Up @@ -411,13 +411,13 @@ def _plugins_init(self):
if self.config.getboolean(name, 'subprocess'):
self.schedule[filename] = 0
else:
if sys.version_info[0] >= 3 and sys.version_info[1] >= 4:
if sys.version_info >= (3,4):
spec = importlib.util.find_spec(name)
else:
fp, pathname, description = imp.find_module(name)

try:
if sys.version_info[0] >= 3 and sys.version_info[1] >= 4:
if sys.version_info >= (3,4):
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)
else:
Expand Down

0 comments on commit 5e84dcd

Please sign in to comment.