From 35ec07e0968ab7f9b9dde542874aa40c65e2543b Mon Sep 17 00:00:00 2001 From: Adam Blackburn Date: Tue, 7 Jul 2009 22:01:19 -1000 Subject: [PATCH] commit Dan's fix for long numeric keys --- wicd/configmanager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wicd/configmanager.py b/wicd/configmanager.py index c61faff..b93b1a6 100644 --- a/wicd/configmanager.py +++ b/wicd/configmanager.py @@ -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):