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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user