2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

python: Fix invalid varable/function references.

This code referred to "rows" where it meant to refer to "fetched_rows".
The patch resolves flake8 error:

  F821 undefined name 'rows'

python/build/nroff.py used a function fatal() that was not defined,
which raised the same type of error.

Signed-off-by: Russell Bryant <russell@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Russell Bryant
2015-12-11 16:16:10 -05:00
parent 5697ca9901
commit e8049bc5e8
3 changed files with 9 additions and 2 deletions

View File

@@ -13,6 +13,7 @@
# limitations under the License.
import re
import sys
from ovs.db import error
@@ -108,6 +109,12 @@ def pre_to_nroff(nodes, para, font):
s += '\n.fi\n'
return s
def fatal(msg):
sys.stderr.write('%s\n' % msg)
sys.exit(1)
def diagram_header_to_nroff(header_node):
header_fields = []
i = 0