diff options
author | Russell Bryant <russell@ovn.org> | 2015-12-11 22:28:31 -0500 |
---|---|---|
committer | Russell Bryant <russell@ovn.org> | 2016-01-05 18:13:47 -0500 |
commit | bdca6c4b56b9951b95c02f1fc13cbc78b16eee28 (patch) | |
tree | cd1397a6b6a48e4dfac56e999d8a09d0e35578c4 /ofproto/ipfix-gen-entities | |
parent | e8049bc5e807bc7065462f60b703469915f8b4d5 (diff) | |
download | openvswitch-bdca6c4b56b9951b95c02f1fc13cbc78b16eee28.tar.gz |
python: Resolve pep8 blank line errors.
Resolve pep8 errors E302 and E303:
E302 expected 2 blank lines, found 1
E303 too many blank lines (3)
Signed-off-by: Russell Bryant <russell@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'ofproto/ipfix-gen-entities')
-rwxr-xr-x | ofproto/ipfix-gen-entities | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ofproto/ipfix-gen-entities b/ofproto/ipfix-gen-entities index 7cd0b03b7..6fd76b117 100755 --- a/ofproto/ipfix-gen-entities +++ b/ofproto/ipfix-gen-entities @@ -13,6 +13,7 @@ import sys import xml.sax import xml.sax.handler + class IpfixEntityHandler(xml.sax.handler.ContentHandler): RECORD_FIELDS = ['name', 'dataType', 'elementId', 'status'] @@ -90,9 +91,11 @@ class IpfixEntityHandler(xml.sax.handler.ContentHandler): if self.current_field_name is not None: self.current_field_value.append(content) + def print_ipfix_entity_macros(xml_file): xml.sax.parse(xml_file, IpfixEntityHandler()) + def usage(name): print """\ %(name)s: IPFIX entity definition generator |