1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-24 07:02:29 +01:00

commit Dan's fix for long numeric keys

This commit is contained in:
Adam Blackburn
2009-07-07 22:01:19 -10:00
parent bfaf9bec65
commit 35ec07e096

View File

@@ -111,11 +111,11 @@ class ConfigManager(RawConfigParser):
except (ValueError, TypeError, AttributeError):
ret = Noneify(ret)
# This is a workaround for a python-dbus issue on 64-bit systems.
if isinstance(ret, (int)):
if isinstance(ret, (int, long)):
try:
Int32(ret)
except OverflowError:
ret = long(ret)
ret = str(ret)
return to_unicode(ret)
def get(self, *args, **kargs):