mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 01:45:17 +00:00
python3: Use the repr() function
This replaces the `` built-in. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
b207817b49
commit
7fad2b675a
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user