summaryrefslogtreecommitdiff
path: root/lang/python27/patches/patch-ad
blob: bd224e31c2f70cdac4720bfc3719f15ec3e5a8f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-ad,v 1.3 2015/04/24 03:01:36 rodent Exp $

Add ability to parse unsigned integers as externalized by NetBSD proplib(3).

--- Lib/plistlib.py.orig	2014-12-10 15:59:39.000000000 +0000
+++ Lib/plistlib.py
@@ -463,7 +463,7 @@ class PlistParser:
     def end_false(self):
         self.addObject(False)
     def end_integer(self):
-        self.addObject(int(self.getData()))
+        self.addObject(int(self.getData(), 0))
     def end_real(self):
         self.addObject(float(self.getData()))
     def end_string(self):