Skip to content

Commit

Permalink
Simplified the patch.
Browse files Browse the repository at this point in the history
  • Loading branch information
lextm committed Dec 5, 2024
1 parent 64ee7df commit 72cb35f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pysnmp/smi/rfc1902.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from typing import TYPE_CHECKING

from pyasn1.error import PyAsn1Error
from pyasn1.type.base import AbstractSimpleAsn1Item, SimpleAsn1Type, NoValue
from pyasn1.type.base import AbstractSimpleAsn1Item, SimpleAsn1Type
from pysnmp import debug
from pysnmp.proto import rfc1902, rfc1905
from pysnmp.proto.api import v2c
Expand Down Expand Up @@ -1068,7 +1068,7 @@ class instance representing MIB browsing functionality.
self.__args[1] = (
object_identity.get_mib_node()
.getSyntax()
.clone(NoValue(), tagSet=self.__args[1].getTagSet())
.clone(tagSet=self.__args[1].getTagSet())
)
self.__args[1]._value = old_value # force to keep the original value
else:
Expand Down

0 comments on commit 72cb35f

Please sign in to comment.