JNPRAutomate / ptolemy

The network cartographer
Apache License 2.0
26 stars 8 forks source link

Bump to Python 3 Compatiblity #4

Open penfold1972 opened 2 years ago

penfold1972 commented 2 years ago

I'm learning Python and refactored this code to run with python 3.6.8 and included some PEP8 clean up to clear up minor items that VScode didn't like.

I have httpserver.py and lldp_network.py working on python3, but have not tested csv_parser.py nor ptolemy.py changes. I figured I would share what I have working with graphviz 2.30.1 on a CentOS Linux release 7.9.2009 server.

Besides shorting a few lines and changing to formatted print statements, it's basically the same code and was mostly a learning exercise.