Switch to unified view

a/src/mediaserver/cdplugins/pycommon/cmdtalkplugin.py b/src/mediaserver/cdplugins/pycommon/cmdtalkplugin.py
...
...
25
class Dispatch:
25
class Dispatch:
26
    def __init__(self):
26
    def __init__(self):
27
        self.map = {}
27
        self.map = {}
28
        
28
        
29
    def record(self, nm):
29
    def record(self, nm):
30
        # The things we get from the pipe are bytes, use bytes as keys
31
        if type(nm) != type(b''):
32
            nm = nm.encode('utf-8')
33
        def decorator(func):
30
        def decorator(func):
34
            self.map[nm] = func
31
            self.map[nm] = func
35
            return func
32
            return func
36
        return decorator
33
        return decorator
37
34