17 lines
582 B
Diff
17 lines
582 B
Diff
=== modified file 'wicd/misc.py'
|
|
--- wicd/misc.py 2012-04-30 19:20:47 +0000
|
|
+++ wicd/misc.py 2012-05-03 16:01:49 +0000
|
|
@@ -430,7 +430,10 @@
|
|
""" Sanitize property names to be used in config-files. """
|
|
allowed = string.ascii_letters + '_' + string.digits
|
|
table = string.maketrans(allowed, ' ' * len(allowed))
|
|
- return s.translate(None, table)
|
|
+
|
|
+ # s is a dbus.String -- since we don't allow unicode property keys,
|
|
+ # make it simple.
|
|
+ return str(s).translate(None, table)
|
|
|
|
def sanitize_escaped(s):
|
|
""" Sanitize double-escaped unicode strings. """
|
|
|