Code Duplication    Length = 12-12 lines in 2 locations

server/lib/pyasn1/type/univ.py 2 locations

@@ 727-738 (lines=12) @@
724
        else:
725
            base.AbstractConstructedAsn1Item.__setitem__(self, idx, value)
726
727
    def _cloneComponentValues(self, myClone, cloneValueFlag):
728
        idx = 0; l = len(self._componentValues)
729
        while idx < l:
730
            c = self._componentValues[idx]
731
            if c is not None:
732
                if isinstance(c, base.AbstractConstructedAsn1Item):
733
                    myClone.setComponentByPosition(
734
                        idx, c.clone(cloneValueFlag=cloneValueFlag)
735
                        )
736
                else:
737
                    myClone.setComponentByPosition(idx, c.clone())
738
            idx = idx + 1
739
740
    def _verifyComponent(self, idx, value):
741
        if idx >= self._componentTypeLen:
@@ 636-647 (lines=12) @@
633
        )
634
    typeId = 1
635
636
    def _cloneComponentValues(self, myClone, cloneValueFlag):
637
        idx = 0; l = len(self._componentValues)
638
        while idx < l:
639
            c = self._componentValues[idx]
640
            if c is not None:
641
                if isinstance(c, base.AbstractConstructedAsn1Item):
642
                    myClone.setComponentByPosition(
643
                        idx, c.clone(cloneValueFlag=cloneValueFlag)
644
                        )
645
                else:
646
                    myClone.setComponentByPosition(idx, c.clone())
647
            idx = idx + 1
648
649
    def _verifyComponent(self, idx, value):
650
        if self._componentType is not None and \