|
@@ -121,6 +121,8 @@ class ControlDispatch(object):
|
|
|
self.logger.error("No such control command: %s" % command)
|
|
|
else:
|
|
|
# need to make sure keyword arguments are not in unicode
|
|
|
- # this should be fixed in newer Python's (see: http://bugs.python.org/issue4978)
|
|
|
- kwargs = dict((k.encode('utf8'), v) for (k, v) in kwargs.iteritems())
|
|
|
+ # this should be fixed in newer Python's
|
|
|
+ # (see: http://bugs.python.org/issue4978)
|
|
|
+ kwargs = dict((k.encode('utf8'), v)
|
|
|
+ for (k, v) in kwargs.iteritems())
|
|
|
return control(**kwargs)
|