[vlc-commits] add constness information to __repr__ for class Par

Alberto Invernizzi git at videolan.org
Wed Apr 29 13:12:26 CEST 2020


vlc/python | branch: master | Alberto Invernizzi <alby.inve at gmail.com> | Tue Mar 31 19:12:50 2020 +0200| [8be6b7f082d809529a8b736f760d3e9b4a07e7cb] | committer: Alberto Invernizzi

add constness information to __repr__ for class Par

> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=8be6b7f082d809529a8b736f760d3e9b4a07e7cb
---

 generator/generate.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/generator/generate.py b/generator/generate.py
index bf7f399..049d736 100755
--- a/generator/generate.py
+++ b/generator/generate.py
@@ -395,7 +395,7 @@ class Par(object):
         self.constness = constness
 
     def __repr__(self):
-        return "%s (%s)" % (self.name, self.type)
+        return "%s (%s) %s" % (self.name, self.type, self.constness)
 
     def dump(self, out=()):  # for debug
         if self.name in out:



More information about the vlc-commits mailing list