## @file\r
# This file hooks file and directory creation and removal\r
#\r
-# Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR>\r
#\r
-# This program and the accompanying materials are licensed and made available \r
-# under the terms and conditions of the BSD License which accompanies this \r
-# distribution. The full text of the license may be found at \r
+# This program and the accompanying materials are licensed and made available\r
+# under the terms and conditions of the BSD License which accompanies this\r
+# distribution. The full text of the license may be found at\r
# http://opensource.org/licenses/bsd-license.php\r
#\r
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
arc = self._tryhook(path)\r
if arc and os.path.isfile(path):\r
self._createzip()\r
- self.zip.write(path, arc.encode('utf_8'))\r
+ self.zip.write(path, arc)\r
sta = os.stat(path)\r
oldmode = stat.S_IMODE(sta.st_mode)\r
self.rlist.append(_PathInfo(_CHMOD, path, oldmode))\r