From 22016ee593d6047855964734a17120d2aea6b5a5 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Tue, 21 Aug 2012 13:32:51 -0400 Subject: lots of various py3k fixes --- src/lib/Bcfg2/Server/Plugins/SEModules.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/lib/Bcfg2/Server/Plugins/SEModules.py') diff --git a/src/lib/Bcfg2/Server/Plugins/SEModules.py b/src/lib/Bcfg2/Server/Plugins/SEModules.py index a99e54bb2..0d75bb48f 100644 --- a/src/lib/Bcfg2/Server/Plugins/SEModules.py +++ b/src/lib/Bcfg2/Server/Plugins/SEModules.py @@ -1,15 +1,14 @@ import os import logging -import binascii -import posixpath - import Bcfg2.Server.Plugin +from Bcfg2.Bcfg2Py3k import b64encode + logger = logging.getLogger(__name__) class SEModuleData(Bcfg2.Server.Plugin.SpecificData): def bind_entry(self, entry, _): entry.set('encoding', 'base64') - entry.text = binascii.b2a_base64(self.data) + entry.text = b64encode(self.data) class SEModules(Bcfg2.Server.Plugin.GroupSpool): -- cgit v1.2.3-1-g7c22