diff mbox

[ovs-dev,24/55] check-structs: Make Python 3 compatible.

Message ID 1450730875-18083-25-git-send-email-russell@ovn.org
State Deferred
Headers show

Commit Message

Russell Bryant Dec. 21, 2015, 8:47 p.m. UTC
Signed-off-by: Russell Bryant <russell@ovn.org>
---
 build-aux/check-structs | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/build-aux/check-structs b/build-aux/check-structs
index f79f235..449fd41 100755
--- a/build-aux/check-structs
+++ b/build-aux/check-structs
@@ -1,5 +1,7 @@ 
 #! /usr/bin/python
 
+from __future__ import print_function
+
 import os.path
 import sys
 import re
@@ -211,7 +213,7 @@  def checkStructs():
 
     if '--help' in sys.argv:
         argv0 = os.path.basename(sys.argv[0])
-        print '''\
+        print('''\
 %(argv0)s, for checking struct and struct member alignment
 usage: %(argv0)s -Ipath HEADER [HEADER]...
 
@@ -226,7 +228,7 @@  assertions using OFP_ASSERT.
 
 This program is specialized for reading Open vSwitch's OpenFlow header
 files.  It will not work on arbitrary header files without extensions.\
-''' % {"argv0": argv0}
+''' % {"argv0": argv0})
         sys.exit(0)
 
     global fileName