[vlc-commits] python: fix trailing whitespace in generated coed

Olivier Aubert git at videolan.org
Sat Oct 6 22:55:21 CEST 2018


vlc/python | branch: master | Olivier Aubert <contact at olivieraubert.net> | Sat Oct  6 20:19:49 2018 +0200| [1f6244f9ad5f5400eaa55334e24b6b6eaefa1f4d] | committer: Olivier Aubert

python: fix trailing whitespace in generated coed

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

 generator/generate.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/generator/generate.py b/generator/generate.py
index 9207c7a..a6924bc 100755
--- a/generator/generate.py
+++ b/generator/generate.py
@@ -1131,7 +1131,7 @@ class _Enum(ctypes.c_uint):
 
             self.output("""    %(name)s = ctypes.CFUNCTYPE(%(types)s)
     %(name)s.__doc__ = '''%(docs)s
-    ''' """ % locals())
+    '''""" % locals())
         self.output("cb = CallbackDecorators")
 
     def generate_wrappers(self):
@@ -1191,8 +1191,8 @@ class _Enum(ctypes.c_uint):
             docs = self.epylink(f.epydocs(1, 8), striprefix)  #PYCHOK flake
             decorator = ""
             if meth.endswith('event_manager'):
-                decorator = '@memoize_parameterless'
-            self.output("""    %(decorator)s
+                decorator = '    @memoize_parameterless'
+            self.output("""%(decorator)s
     def %(meth)s(%(args)s):
         '''%(docs)s
         '''



More information about the vlc-commits mailing list