Project

General

Profile

Revision 811:c767bdfd7316

IDc767bdfd7316
Parent 810:24bcdf3e6692
Child 812:6d9479323c2c

Added by Maarten Sneep about 2 years ago

Use deprecated plistlib.readPList() when plistlib.load() is not available

View differences:

src/pycama/JobOrderParser.py
133 133
                self.logger.error(str(err))
134 134
                self.error = True
135 135
                return
136
            except AttributeError:
137
                try:
138
                    plistlib.readPlist(f)
139
                except IOError as err:
140
                    self.logger.error(str(err))
141
                    self.error = True
142
                    return
136 143

  
137 144
        if 'general_settings' not in d:
138 145
            self.logger.error("general_settings nog found in [{0}]".format(", ".join(self.config_files)))

Also available in: Unified diff