commit Dan's fix for long numeric keys
This commit is contained in:
1 parent
bfaf9bec65
commit
35ec07e096
1 file changed
+2
-2
@@ -111,11 +111,11 @@ class ConfigManager(RawConfigParser):
|
|||||||
except (ValueError, TypeError, AttributeError):
|
except (ValueError, TypeError, AttributeError):
|
||||||
ret = Noneify(ret)
|
ret = Noneify(ret)
|
||||||
# This is a workaround for a python-dbus issue on 64-bit systems.
|
# This is a workaround for a python-dbus issue on 64-bit systems.
|
||||||
if isinstance(ret, (int)):
|
if isinstance(ret, (int, long)):
|
||||||
try:
|
try:
|
||||||
Int32(ret)
|
Int32(ret)
|
||||||
except OverflowError:
|
except OverflowError:
|
||||||
ret = long(ret)
|
ret = str(ret)
|
||||||
return to_unicode(ret)
|
return to_unicode(ret)
|
||||||
|
|
||||||
def get(self, *args, **kargs):
|
def get(self, *args, **kargs):
|
||||||
|
|||||||
Reference in new issue
Block a user