python: Fix invalid varable/function references.
[cascardo/ovs.git] / python / build / nroff.py
index 75461eb..674fdfe 100644 (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