Re: [Minimalmodbus-list] patch for running with python 2.6
Status: Beta
Brought to you by:
pyhys
|
From: Jonas B. <jon...@ho...> - 2014-11-03 20:33:50
|
Great,
thanks Edwin!
It will be included in next release.
Best regards
Jonas
<-----Ursprungligt Meddelande----->
From: Edwin van den Oetelaar [ed...@oe...]
Sent: 31/10/2014 2:45:09 PM
To: min...@li...
Subject: [Minimalmodbus-list] patch for running with python 2.6
Hello everyone,
I tried running on python Python 2.6.6 (r266:84292, Dec 27 2010,
21:57:32)
on a iMx233 board and that did not work..
Format strings must have position indicators.
So : '{}'.format(77)
will not work but
'{0}'.format(777)
will work fine
I made a patch to fix my problems and you can add it without risk.
Hope this is useful,
Edwin van den Oetelaar
|