[vlc-devel] commit: python-ctypes: fix indent issue (Olivier Aubert )
git version control
git at videolan.org
Mon Aug 10 10:09:11 CEST 2009
vlc | branch: master | Olivier Aubert <olivier.aubert at liris.cnrs.fr> | Mon Aug 10 10:03:42 2009 +0200| [10d4cfc5e783c59263bfde04157b81300751167b] | committer: Olivier Aubert
python-ctypes: fix indent issue
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=10d4cfc5e783c59263bfde04157b81300751167b
---
bindings/python-ctypes/generate.py | 38 ++++++++++++++++++------------------
1 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/bindings/python-ctypes/generate.py b/bindings/python-ctypes/generate.py
index 032af7d..c5c63bd 100755
--- a/bindings/python-ctypes/generate.py
+++ b/bindings/python-ctypes/generate.py
@@ -467,8 +467,8 @@ class PythonGenerator(object):
self.output(" }")
self.output("""
- def __repr__(self):
- return ".".join((self.__class__.__module__, self.__class__.__name__, self._names[self.value]))
+ def __repr__(self):
+ return ".".join((self.__class__.__module__, self.__class__.__name__, self._names[self.value]))
""")
def output_ctypes(self, rtype, method, params, comment):
@@ -572,23 +572,23 @@ class PythonGenerator(object):
self.output(' """%s\n """' % docstring[classname])
self.output("""
- def __new__(cls, pointer=None):
- '''Internal method used for instanciating wrappers from ctypes.
- '''
- if pointer is None:
- raise Exception("Internal method. Surely this class cannot be instanciated by itself.")
- if pointer == 0:
- return None
- else:
- o=object.__new__(cls)
- o._as_parameter_=ctypes.c_void_p(pointer)
- return o
-
- @staticmethod
- def from_param(arg):
- '''(INTERNAL) ctypes parameter conversion method.
- '''
- return arg._as_parameter_
+ def __new__(cls, pointer=None):
+ '''Internal method used for instanciating wrappers from ctypes.
+ '''
+ if pointer is None:
+ raise Exception("Internal method. Surely this class cannot be instanciated by itself.")
+ if pointer == 0:
+ return None
+ else:
+ o=object.__new__(cls)
+ o._as_parameter_=ctypes.c_void_p(pointer)
+ return o
+
+ @staticmethod
+ def from_param(arg):
+ '''(INTERNAL) ctypes parameter conversion method.
+ '''
+ return arg._as_parameter_
""" % {'name': classname})
if classname in overrides:
More information about the vlc-devel
mailing list