From 0e6a6cc08346474f876e0ab436b69f4c843651a9 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Sat, 2 Aug 2008 13:05:26 +0000 Subject: Remove SGML support, require python 2.4, modernize, PEP-8ify. Make it run 2008-08-02 Johan Dahlin * codegen/docgen.py: Remove SGML support, require python 2.4, modernize, PEP-8ify. Make it run on gio. * codegen/definitions.py: Make property iterable * gio/gio.defs: Include the gio-types.defs file. svn path=/trunk/; revision=914 --- codegen/definitions.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'codegen/definitions.py') diff --git a/codegen/definitions.py b/codegen/definitions.py index 5da488b..6249d78 100644 --- a/codegen/definitions.py +++ b/codegen/definitions.py @@ -49,6 +49,10 @@ class Property(object): self.optional = optional self.argname = argname + def __len__(self): return 4 + def __getitem__(self, i): + return ('', self.pname, self.optional, self.argname)[i] + def merge(self, old): if old.optional is not None: self.optional = old.optional -- cgit