Skip to content

Commit

Permalink
treewide: Fix recent flake8-check.
Browse files Browse the repository at this point in the history
Without this patch, I see errors like this on master:
../ofproto/ipfix-gen-entities:115:1: E305 expected 2 blank lines after
class or function definition, found 1

Signed-off-by: Joe Stringer <[email protected]>
Acked-by: Daniele Di Proietto <[email protected]>
  • Loading branch information
joestringer committed Dec 8, 2016
1 parent 2010abf commit 81a86b9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions ofproto/ipfix-gen-entities
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ The following options are also available:
""" % {'name': name})
sys.exit(0)


if __name__ == '__main__':
try:
options, args = getopt.gnu_getopt(sys.argv[1:], 'hV',
Expand Down
3 changes: 3 additions & 0 deletions utilities/ovs-pcap.in
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ class PcapReader(object):
if len(packet) != incl_len:
raise PcapException("end of file reading pcap packet data")
return packet


argv0 = sys.argv[0]


Expand All @@ -70,6 +72,7 @@ The following options are also available:
""" % {'argv0': argv0})
sys.exit(0)


if __name__ == "__main__":
try:
try:
Expand Down
1 change: 1 addition & 0 deletions utilities/ovs-tcpdump.in
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def _install_tap_linux(tap_name):
*(['ip', 'link', 'set', 'dev', str(tap_name), 'up']))
pipe.wait()


_make_taps['linux'] = _install_tap_linux
_make_taps['linux2'] = _install_tap_linux

Expand Down
1 change: 1 addition & 0 deletions vtep/ovs-vtep
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,7 @@ def main():

unixctl.close()


if __name__ == '__main__':
try:
main()
Expand Down

0 comments on commit 81a86b9

Please sign in to comment.