1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-15 01:24:29 +02:00

patch for windows compatibility: can only open tempfile once

This commit is contained in:
Kelly Brazil
2022-12-30 11:06:45 -08:00
parent e49c621e59
commit 47d8e163de

View File

@ -36,7 +36,9 @@ class PBPlist(object):
def __init__(self, file_path):
self.root = None
if self.__checkFile(file_path) is True:
# don't use __checkFile since we can only open the file once in Windows
# if self.__checkFile(file_path) is True:
self.file_path = file_path
parser = PBParser(self.file_path)
self.root = parser.read()
self.string_encoding = parser.string_encoding