From 7fad2b675aa1e40b0cc4b3d187160850cb89e085 Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Thu, 15 Mar 2018 10:36:06 +0100 Subject: [PATCH] python3: Use the repr() function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This replaces the `` built-in. Signed-off-by: Andrea Bolognani Reviewed-by: Daniel P. Berrangé --- docs/apibuild.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/apibuild.py b/docs/apibuild.py index 9ac6442337..2e8932bb5e 100755 --- a/docs/apibuild.py +++ b/docs/apibuild.py @@ -163,11 +163,11 @@ class identifier: if self.module is not None: r = r + " from %s" % (self.module) if self.info is not None: - r = r + " " + `self.info` + r = r + " " + repr(self.info) if self.extra is not None: - r = r + " " + `self.extra` + r = r + " " + repr(self.extra) if self.conditionals is not None: - r = r + " " + `self.conditionals` + r = r + " " + repr(self.conditionals) return r @@ -2316,7 +2316,7 @@ class docBuilder: self.indexString(name, param[2]) except: print("Exception:", sys.exc_info()[1], file=sys.stderr) - self.warning("Failed to save function %s info: %s" % (name, `id.info`)) + self.warning("Failed to save function %s info: %s" % (name, repr(id.info))) output.write(" \n" % (id.type)) def serialize_exports(self, output, file):