[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
Sun Nov 13 13:54:58 UTC 2011


Bugs item #313446, was opened at 2011-11-13 16:54 by Bohdan Popovych
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=411542&aid=313446&group_id=30602

Status: Open
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!

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

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