From 1c56044ff12d3a6b29421eefc2ec0b57a4d2cdff Mon Sep 17 00:00:00 2001 From: quentinhardy Date: Wed, 2 Nov 2016 07:28:11 -0400 Subject: [PATCH] Bug fix with utf-8 --- pupy/modules/outlook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pupy/modules/outlook.py b/pupy/modules/outlook.py index 65eb33ec..377a8d1e 100644 --- a/pupy/modules/outlook.py +++ b/pupy/modules/outlook.py @@ -39,7 +39,7 @@ class Outlook(PupyModule): ''' self.client.load_package("outlook") localFolder=args.localOutputFolder - self.localFolder = os.path.join(localFolder, "{0}-{1}-{2}".format(self.client.desc['hostname'].encode('utf-8'), self.client.desc['user'].encode('utf-8'), self.client.desc['macaddr'].encode('utf-8').replace(':',''))) + self.localFolder = os.path.join(localFolder, "{0}-{1}-{2}".format(self.client.desc['hostname'], self.client.desc['user'], self.client.desc['macaddr'].replace(':',''))) if not os.path.exists(self.localFolder): logging.debug("Creating the {0} folder locally".format(self.localFolder)) os.makedirs(self.localFolder)