]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
python3: Use the repr() function
authorAndrea Bolognani <abologna@redhat.com>
Thu, 15 Mar 2018 09:36:06 +0000 (10:36 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 15 Mar 2018 16:48:33 +0000 (17:48 +0100)
This replaces the `` built-in.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
docs/apibuild.py

index 9ac644233761da7019f4354e4519ffdc9138c002..2e8932bb5ea4b0c1981b15d8de47c3678afa1ada 100755 (executable)
@@ -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("    </%s>\n" % (id.type))
 
     def serialize_exports(self, output, file):