| Server IP : 93.86.61.54 / Your IP : 216.73.216.206 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/pysmi/codegen/ |
Upload File : |
#
# This file is part of pysmi software.
#
# Copyright (c) 2015-2018, Ilya Etingof <etingof@gmail.com>
# License: http://snmplabs.com/pysmi/license.html
#
from pysmi.mibinfo import MibInfo
from pysmi.codegen.base import AbstractCodeGen
from pysmi import debug
class NullCodeGen(AbstractCodeGen):
"""Dummy code generation backend.
Could be used for disabling code generation at *MibCompiler*.
"""
def genCode(self, ast, symbolTable, **kwargs):
debug.logger & debug.flagCodegen and debug.logger('%s invoked' % self.__class__.__name__)
return MibInfo(oid=None, name='', imported=[]), ''
def genIndex(self, mibsMap, **kwargs):
return ''