diff options
author | Johan Dahlin <johan@gnome.org> | 2008-08-02 13:05:26 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-08-02 13:05:26 +0000 |
commit | 0e6a6cc08346474f876e0ab436b69f4c843651a9 (patch) | |
tree | 2f51151e335d0d88793d6977d4d96e02599f884e /codegen/definitions.py | |
parent | b69db173aa177bf13a4e3a2caec87ca8810baee4 (diff) | |
download | pygobject-0e6a6cc08346474f876e0ab436b69f4c843651a9.tar.gz pygobject-0e6a6cc08346474f876e0ab436b69f4c843651a9.tar.xz pygobject-0e6a6cc08346474f876e0ab436b69f4c843651a9.zip |
Remove SGML support, require python 2.4, modernize, PEP-8ify. Make it run
2008-08-02 Johan Dahlin <johan@gnome.org>
* 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
Diffstat (limited to 'codegen/definitions.py')
-rw-r--r-- | codegen/definitions.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 |