wok view wicd/stuff/dbus_string_fix.patch @ rev 17180
virtualbox-ose;strigi;libjreen;qca;qtractor: remove meta "qt4" depend; libQtCore:pthreads required
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Sat Sep 27 21:53:42 2014 +0200 (2014-09-27) |
parents | |
children |
line source
1 === modified file 'wicd/misc.py'
2 --- wicd/misc.py 2012-04-30 19:20:47 +0000
3 +++ wicd/misc.py 2012-05-03 16:01:49 +0000
4 @@ -430,7 +430,10 @@
5 """ Sanitize property names to be used in config-files. """
6 allowed = string.ascii_letters + '_' + string.digits
7 table = string.maketrans(allowed, ' ' * len(allowed))
8 - return s.translate(None, table)
9 +
10 + # s is a dbus.String -- since we don't allow unicode property keys,
11 + # make it simple.
12 + return str(s).translate(None, table)
14 def sanitize_escaped(s):
15 """ Sanitize double-escaped unicode strings. """