def __init__(self, *args, **kwds): if kwds.get('ignore_missing_slaves'): assert list( map( int, pymodbus_version.split( '.' ))) >= [1,3,0], \ "The pymodbus version %s installed lacks ignore_missing_slaves keyword; requires 1.3.0 or better" % ( pymodbus_version ) if kwds.get('handler'): assert list( map( int, pymodbus_version.split( '.' ))) >= [1,3,0], \ "The pymodbus version %s installed lacks request handler keyword; requires 1.3.0 or better" % ( pymodbus_version ) # NOT a new-style class (due to SocketServer.ThreadingTCPServer); no super(...) ModbusTcpServer.__init__(self, *args, **kwds)
def __init__( self, *args, **kwds ): if kwds.get( 'ignore_missing_slaves' ): assert list( map( int, pymodbus_version.split( '.' ))) >= [1,3,0], \ "The pymodbus version %s installed lacks ignore_missing_slaves keyword; requires 1.3.0 or better" % ( pymodbus_version ) if kwds.get( 'handler' ): assert list( map( int, pymodbus_version.split( '.' ))) >= [1,3,0], \ "The pymodbus version %s installed lacks request handler keyword; requires 1.3.0 or better" % ( pymodbus_version ) # NOT a new-style class (due to SocketServer.ThreadingTCPServer); no super(...) ModbusTcpServer.__init__( self, *args, **kwds )
def __init__(self, *args, **kwds): if kwds.get('ignore_missing_slaves'): assert list( map( int, pymodbus_version.split( '.' ))) >= [1,3,0], \ "The pymodbus version %s installed lacks the ignore_missing_slaves; requires 1.3.0 or better" % ( pymodbus_version ) super(modbus_server_rtu, self).__init__(*args, **kwds) # IS a new style class
def __init__( self, *args, **kwds ): if kwds.get( 'ignore_missing_slaves' ): assert list( map( int, pymodbus_version.split( '.' ))) >= [1,3,0], \ "The pymodbus version %s installed lacks the ignore_missing_slaves; requires 1.3.0 or better" % ( pymodbus_version ) super( modbus_server_rtu, self ).__init__( *args, **kwds ) # IS a new style class
# The master toctree document. master_doc = 'index' # General information about the project. project = u'pymodbus' copyright = u'2017, riptideio/bashworks' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # Find the package version and make it the release. from pymodbus import __version__ as pymodbus_version # noqa # The short X.Y version. version = '.'.join(pymodbus_version.split('.')[:2]) # The full version, including alpha/beta/rc tags. release = pymodbus_version # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. language = 'en' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. exclude_patterns = ['build'] # If true, '()' will be appended to :func: etc. cross-reference text. add_function_parentheses = True