summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools/Encap.py
diff options
context:
space:
mode:
authorSol Jerome <solj@ices.utexas.edu>2009-04-24 22:35:03 +0000
committerSol Jerome <solj@ices.utexas.edu>2009-04-24 22:35:03 +0000
commit7f3820bc79d27bc7e19b73658d6f0cfaa5b3b53a (patch)
tree1f38a9fb89d70cb158478661cdcb2cbda098ce5f /src/lib/Client/Tools/Encap.py
parentf8b1a55d842f2beef4823b825552ff440b80c655 (diff)
downloadbcfg2-7f3820bc79d27bc7e19b73658d6f0cfaa5b3b53a.tar.gz
bcfg2-7f3820bc79d27bc7e19b73658d6f0cfaa5b3b53a.tar.bz2
bcfg2-7f3820bc79d27bc7e19b73658d6f0cfaa5b3b53a.zip
Python 2to3 updates for the Client tools
Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5178 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Tools/Encap.py')
-rw-r--r--src/lib/Client/Tools/Encap.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/Client/Tools/Encap.py b/src/lib/Client/Tools/Encap.py
index 520689da2..d547dee98 100644
--- a/src/lib/Client/Tools/Encap.py
+++ b/src/lib/Client/Tools/Encap.py
@@ -2,7 +2,9 @@
__revision__ = '$Revision$'
-import Bcfg2.Client.Tools, glob, re
+import glob
+import re
+import Bcfg2.Client.Tools
class Encap(Bcfg2.Client.Tools.PkgTool):
'''Support for Encap packages'''
@@ -25,9 +27,9 @@ class Encap(Bcfg2.Client.Tools.PkgTool):
if match:
self.installed[match.group('name')] = match.group('version')
else:
- print "Failed to split name %s" % pkg
+ print("Failed to split name %s" % pkg)
self.logger.debug("Encap.py: RefreshPackages: self.installed.keys() are:")
- self.logger.debug("%s" % self.installed.keys())
+ self.logger.debug("%s" % list(self.installed.keys()))
def VerifyPackage(self, entry, _):
'''Verify Package status for entry'''