Revision f5c75f88 ncclient/content/builders.py

b/ncclient/content/builders.py
66 66
    
67 67
    @staticmethod
68 68
    def build(msgid, op, encoding='utf-8'):
69
        if isinstance(opspec, basestring):
70
            return build_from_string(msgid, op, encoding)
69
        if isinstance(op, basestring):
70
            return RPCBuilder.build_from_string(msgid, op, encoding)
71 71
        else:
72
            return build_from_spec(msgid, op, encoding)
72
            return RPCBuilder.build_from_spec(msgid, op, encoding)
73 73
    
74 74
    @staticmethod
75 75
    def build_from_spec(msgid, opspec, encoding='utf-8'):

Also available in: Unified diff