summaryrefslogtreecommitdiffstats
path: root/lib/python/sectracker
diff options
context:
space:
mode:
authorBrian May <brian@linuxpenguins.xyz>2018-07-15 09:37:12 +1000
committerBrian May <brian@linuxpenguins.xyz>2018-08-06 16:57:35 +1000
commitdbfa93c62253aab8e1ceb1c1ed578ae88c9dc8f7 (patch)
tree5eafb3a2eed75924c515b4bf0250d83d9fb67400 /lib/python/sectracker
parent4b9d6d320f02267e1d5c2d6c21c69314197adc8e (diff)
Fix print statements for Python 3.6 compatibility
Diffstat (limited to 'lib/python/sectracker')
-rw-r--r--lib/python/sectracker/repo.py2
-rw-r--r--lib/python/sectracker/xcollections.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/python/sectracker/repo.py b/lib/python/sectracker/repo.py
index ab0c43d89b..a108de8c3b 100644
--- a/lib/python/sectracker/repo.py
+++ b/lib/python/sectracker/repo.py
@@ -251,7 +251,7 @@ class RepoCollection(object):
def warn(self, msg):
if self.verbose:
- print msg
+ print(msg)
class Config(object):
def __init__(self, config, root):
diff --git a/lib/python/sectracker/xcollections.py b/lib/python/sectracker/xcollections.py
index 4dbf38010e..2a63a0ee83 100644
--- a/lib/python/sectracker/xcollections.py
+++ b/lib/python/sectracker/xcollections.py
@@ -72,7 +72,7 @@ def namedtuple(typename, field_names, verbose=False):
for i, name in enumerate(field_names):
template += ' %s = _property(_itemgetter(%d))\n' % (name, i)
if verbose:
- print template
+ print(template)
# Execute the template string in a temporary namespace and
# support tracing utilities by setting a value for frame.f_globals['__name__']

© 2014-2024 Faster IT GmbH | imprint | privacy policy