Code Duplication    Length = 13-15 lines in 2 locations

opcua/ua/uaprotocol_auto.py 2 locations

@@ 12211-12225 (lines=15) @@
12208
12209
    def __str__(self):
12210
        return 'SetTriggeringRequest(' + 'TypeId:' + str(self.TypeId) + ', ' + \
12211
               'RequestHeader:' + str(self.RequestHeader) + ', ' + \
12212
               'Parameters:' + str(self.Parameters) + ')'
12213
12214
    __repr__ = __str__
12215
12216
12217
class SetTriggeringResult(FrozenClass):
12218
    '''
12219
    :ivar AddResults:
12220
    :vartype AddResults: StatusCode
12221
    :ivar AddDiagnosticInfos:
12222
    :vartype AddDiagnosticInfos: DiagnosticInfo
12223
    :ivar RemoveResults:
12224
    :vartype RemoveResults: StatusCode
12225
    :ivar RemoveDiagnosticInfos:
12226
    :vartype RemoveDiagnosticInfos: DiagnosticInfo
12227
    '''
12228
@@ 10618-10630 (lines=13) @@
10615
10616
    def __str__(self):
10617
        return 'CallMethodRequest(' + 'ObjectId:' + str(self.ObjectId) + ', ' + \
10618
               'MethodId:' + str(self.MethodId) + ', ' + \
10619
               'InputArguments:' + str(self.InputArguments) + ')'
10620
10621
    __repr__ = __str__
10622
10623
10624
class CallMethodResult(FrozenClass):
10625
    '''
10626
    :ivar StatusCode:
10627
    :vartype StatusCode: StatusCode
10628
    :ivar InputArgumentResults:
10629
    :vartype InputArgumentResults: StatusCode
10630
    :ivar InputArgumentDiagnosticInfos:
10631
    :vartype InputArgumentDiagnosticInfos: DiagnosticInfo
10632
    :ivar OutputArguments:
10633
    :vartype OutputArguments: Variant