# Path: pysnmp/proto/rfc1902.py
# class Integer(univ.Integer):
# class Integer32(univ.Integer):
# class OctetString(univ.OctetString):
# class IpAddress(univ.OctetString):
# class Counter32(univ.Integer):
# class Gauge32(univ.Integer):
# class Unsigned32(univ.Integer):
# class TimeTicks(univ.Integer):
# class Opaque(univ.OctetString):
# class Counter64(univ.Integer):
# class Bits(univ.OctetString):
# class ObjectName(univ.ObjectIdentifier): pass
# class SimpleSyntax(rfc1155.TypeCoercionHackMixIn, univ.Choice):
# class ApplicationSyntax(rfc1155.TypeCoercionHackMixIn, univ.Choice):
# class ObjectSyntax(univ.Choice):
#     def setFixedLength(self, value):
#     def isFixedLength(self):
#     def getFixedLength(self):
#     def prettyIn(self, value):
#     def prettyOut(self, value):
#     def __init__(self, value=None, tagSet=None, subtypeSpec=None,
#                  namedValues=None):
#     def prettyIn(self, bits):
#     def prettyOut(self, value):
#     def clone(self, value=None, tagSet=None, subtypeSpec=None,
#               namedValues=None):
#     def subtype(self, value=None, implicitTag=None, explicitTag=None,
#                 subtypeSpec=None, namedValues=None):
# 
# Path: pysnmp/smi/builder.py
# class ZipMibSource(__AbstractMibSource):
#     def _init(self):
#         try:
#             p = __import__(
#                 self._srcName, globals(), locals(), self._srcName.split('.')
#                 )
#             if hasattr(p, '__loader__'):
#                 self.__loader = p.__loader__
#                 self._srcName = self._srcName.replace('.', os.sep)
#                 return self
#             else:
#                 # Dir relative to PYTHONPATH
#                 return DirMibSource(os.path.split(p.__file__)[0]).init()
#         except ImportError:
#             # Dir relative to CWD
#             return DirMibSource(self._srcName).init()
# 
#     def _parseDosTime(self, dosdate, dostime):
#         t = ( ((dosdate >> 9) & 0x7f) + 1980, # year
#               ((dosdate >> 5) & 0x0f),  # month
#               dosdate & 0x1f, # mday
#               (dostime >> 11) & 0x1f, # hour
#               (dostime >> 5) & 0x3f, # min
#               (dostime & 0x1f) * 2, # sec
#               -1, # wday
#               -1, # yday
#               -1  ) # dst
#         return time.mktime(t)
# 
#     def _listdir(self):
#         l = []
#         for f in self.__loader._files.keys():
#             d, f = os.path.split(f)
#             if d == self._srcName:
#                 l.append(f)
#         return tuple(self._uniqNames(l))
# 
#     def _getTimestamp(self, f):
#         p = os.path.join(self._srcName, f)
#         if p in self.__loader._files:
#             return self._parseDosTime(
#                 self.__loader._files[p][6],
#                 self.__loader._files[p][5]
#                 )
#         else:
#             raise IOError('No file in ZIP: %s' % p)
#         
#     def _getData(self, f, mode=None):
#         return self.__loader.get_data(os.path.join(self._srcName, f))


import sys
from pysnmp.proto import rfc1902
from pysnmp.smi.builder import ZipMibSource
from pysnmp.error import PySnmpError
from pyasn1.error import PyAsn1Error
        return self

    # provides deferred MIBs load
    def loadMibs(self, *modNames):
        self.__modNamesToLoad = modNames
        return self

    # this would eventually be called by an entity which posses a
    # reference to MibViewController
    def resolveWithMib(self, mibViewController, oidOnly=False):
        if self.__mibSourcesToAdd is not None:
            mibSources = tuple(
                [ ZipMibSource(x) for x in self.__mibSourcesToAdd ]
            ) + mibViewController.mibBuilder.getMibSources()
            mibViewController.mibBuilder.setMibSources(*mibSources)
            self.__mibSourcesToAdd = None

        if self.__modNamesToLoad is not None:
            mibViewController.mibBuilder.loadModules(*self.__modNamesToLoad)
            self.__modNamesToLoad = None

        if self.__state & (self.stOidOnly | self.stClean):
            return self

        MibScalar, MibTableColumn, = mibViewController.mibBuilder.importSymbols(
            'SNMPv2-SMI', 'MibScalar', 'MibTableColumn'
        )

        if len(self.__args) == 1:  # OID or label
            try:

# Path: pysnmp/proto/rfc1902.py
# class Integer(univ.Integer):
# class Integer32(univ.Integer):
# class OctetString(univ.OctetString):
# class IpAddress(univ.OctetString):
# class Counter32(univ.Integer):
# class Gauge32(univ.Integer):
# class Unsigned32(univ.Integer):
# class TimeTicks(univ.Integer):
# class Opaque(univ.OctetString):
# class Counter64(univ.Integer):
# class Bits(univ.OctetString):
# class ObjectName(univ.ObjectIdentifier): pass
# class SimpleSyntax(rfc1155.TypeCoercionHackMixIn, univ.Choice):
# class ApplicationSyntax(rfc1155.TypeCoercionHackMixIn, univ.Choice):
# class ObjectSyntax(univ.Choice):
#     def setFixedLength(self, value):
#     def isFixedLength(self):
#     def getFixedLength(self):
#     def prettyIn(self, value):
#     def prettyOut(self, value):
#     def __init__(self, value=None, tagSet=None, subtypeSpec=None,
#                  namedValues=None):
#     def prettyIn(self, bits):
#     def prettyOut(self, value):
#     def clone(self, value=None, tagSet=None, subtypeSpec=None,
#               namedValues=None):
#     def subtype(self, value=None, implicitTag=None, explicitTag=None,
#                 subtypeSpec=None, namedValues=None):
# 
# Path: pysnmp/smi/builder.py
# class ZipMibSource(__AbstractMibSource):
#     def _init(self):
#         try:
#             p = __import__(
#                 self._srcName, globals(), locals(), self._srcName.split('.')
#                 )
#             if hasattr(p, '__loader__'):
#                 self.__loader = p.__loader__
#                 self._srcName = self._srcName.replace('.', os.sep)
#                 return self
#             else:
#                 # Dir relative to PYTHONPATH
#                 return DirMibSource(os.path.split(p.__file__)[0]).init()
#         except ImportError:
#             # Dir relative to CWD
#             return DirMibSource(self._srcName).init()
# 
#     def _parseDosTime(self, dosdate, dostime):
#         t = ( ((dosdate >> 9) & 0x7f) + 1980, # year
#               ((dosdate >> 5) & 0x0f),  # month
#               dosdate & 0x1f, # mday
#               (dostime >> 11) & 0x1f, # hour
#               (dostime >> 5) & 0x3f, # min
#               (dostime & 0x1f) * 2, # sec
#               -1, # wday
#               -1, # yday
#               -1  ) # dst
#         return time.mktime(t)
# 
#     def _listdir(self):
#         l = []
#         for f in self.__loader._files.keys():
#             d, f = os.path.split(f)
#             if d == self._srcName:
#                 l.append(f)
#         return tuple(self._uniqNames(l))
# 
#     def _getTimestamp(self, f):
#         p = os.path.join(self._srcName, f)
#         if p in self.__loader._files:
#             return self._parseDosTime(
#                 self.__loader._files[p][6],
#                 self.__loader._files[p][5]
#                 )
#         else:
#             raise IOError('No file in ZIP: %s' % p)
#         
#     def _getData(self, f, mode=None):
#         return self.__loader.get_data(os.path.join(self._srcName, f))


# Path: pysnmp/entity/rfc3413/oneliner/mibvar.py
import sys
from pysnmp.proto import rfc1902
from pysnmp.smi.builder import ZipMibSource
from pysnmp.error import PySnmpError
from pyasn1.error import PyAsn1Error

        return self

    # provides deferred MIBs load
    def loadMibs(self, *modNames):
        self.__modNamesToLoad = modNames
        return self

    # this would eventually be called by an entity which posses a
    # reference to MibViewController
    def resolveWithMib(self, mibViewController, oidOnly=False):
        if self.__mibSourcesToAdd is not None:
            mibSources = tuple(
                [ ZipMibSource(x) for x in self.__mibSourcesToAdd ]
            ) + mibViewController.mibBuilder.getMibSources()
            mibViewController.mibBuilder.setMibSources(*mibSources)
            self.__mibSourcesToAdd = None

        if self.__modNamesToLoad is not None:
            mibViewController.mibBuilder.loadModules(*self.__modNamesToLoad)
            self.__modNamesToLoad = None

        if self.__state & (self.stOidOnly | self.stClean):
            return self

        MibScalar, MibTableColumn, = mibViewController.mibBuilder.importSymbols(
            'SNMPv2-SMI', 'MibScalar', 'MibTableColumn'
        )

        if len(self.__args) == 1:  # OID or label
            try:

                self.__oid = rfc1902.ObjectName(self.__args[0])