First crack at restoring mininet python style, assisted by handy
'unpep8' script, which does most of the work. - topo.py is still in pep8 - not all examples work, but this is due to other issues
This commit is contained in:
+8
-8
@@ -1,16 +1,16 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
"""
|
||||
unpep8:
|
||||
|
||||
Translate from PEP8 Python style to Mininet (i.e. Arista-like)
|
||||
Python style:
|
||||
Python style
|
||||
|
||||
- Reinstates CapWords for methods and instance variables.
|
||||
- Gets rid of triple single quotes.
|
||||
- Eliminates triple quotes on single lines.
|
||||
- Inserts extra spaces to improve readability.
|
||||
- Fixes Doxygen (or doxypy) ugliness.
|
||||
usage: unpep8 < old.py > new.py
|
||||
|
||||
- Reinstates CapWords for methods and instance variables
|
||||
- Gets rid of triple single quotes
|
||||
- Eliminates triple quotes on single lines
|
||||
- Inserts extra spaces to improve readability
|
||||
- Fixes Doxygen (or doxypy) ugliness
|
||||
|
||||
Does the following translations:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user