mirror of
https://github.com/gryf/wicd.git
synced 2026-02-19 08:25:47 +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):
|
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