[nut-Bugs][313446] tools/nut-snmpinfo.py does not compiles with python 3 cuz of indentation typo and file object usage

nut-bugs at alioth.debian.org nut-bugs at alioth.debian.org
Tue Nov 29 13:04:12 UTC 2011


Bugs item #313446, was changed at 13/11/2011 14:54 by Arnaud Quette
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=411542&aid=313446&group_id=30602

>Status: Pending
Priority: 3
Submitted By: Bohdan Popovych (vacula-guest)
Assigned to: Nobody (None)
Summary: tools/nut-snmpinfo.py does not compiles with python 3 cuz of indentation typo and file object usage 
Category: Server
Group: None
Resolution: None


Initial Comment:
python 3 has more strict indentation validation comparing to python 2 (in python 3 python's 2 "-tt" option is default ") that's why nut-snmpinfo.py, line 119 can't be compiled with python 3. Also, as it is recommended, we should use open( instead of file( in python 2. Attaching simle patch to fix that. tnx!

----------------------------------------------------------------------

>Comment By: Arnaud Quette (aquette)
Date: 29/11/2011 14:04

Message:
Hi Bohdan,

I've just applied your patch to the Svn trunk.
Will be available in 2.6.3.

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=411542&aid=313446&group_id=30602



More information about the NUT-tracker mailing list