hafidz1977 / pymodbus

Automatically exported from code.google.com/p/pymodbus
0 stars 0 forks source link

Implementation __str__ method is broken #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The __str__ method of WriteSingleCoilRequest in bit_write_message.py
is defined as follows:

   def __str__(self):
        ''' Returns a string representation of the instance

        :return: A string representation of the instance
        '''
        return "WriteCoilRequest(%d) => " % self.address, self.value

This problem only hurts when debugging the code and printing
the instances - so it's not too important ;-).

Original issue reported on code.google.com by albert.k...@gmail.com on 20 Jan 2011 at 12:52

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r91.

Original comment by Bashw...@gmail.com on 20 Jan 2011 at 5:09