Kaydet (Commit) 6d1b1425 authored tarafından Enrico Tröger's avatar Enrico Tröger

Make the script a bit more robust with newer Python versions.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4597 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 92c06635
2010-01-31 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* icons/Makefile.am:
Include geany.ico in the distribution tarball.
* Makefile.am:
Fix 'make distcheck' by removing data/latex.tags from EXTRA_DIST.
* scripts/create_py_tags.py:
Make the script a bit more robust with newer Python versions.
2010-01-31 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
* plugins/export.c:
......
......@@ -141,14 +141,17 @@ class Parser:
name = obj.__name__
except AttributeError:
name = obj_name
if not name or name.startswith('_'):
if not name or not isinstance(name, basestring) or name.startswith('_'):
# skip non-public tags
continue;
if inspect.isfunction(obj):
self._add_tag(obj, TYPE_FUNCTION)
elif inspect.isclass(obj):
self._add_tag(obj, TYPE_CLASS, self._get_superclass(obj))
methods = inspect.getmembers(obj, inspect.ismethod)
try:
methods = inspect.getmembers(obj, inspect.ismethod)
except AttributeError:
methods = []
for m_name, m_obj in methods:
# skip non-public tags
if m_name.startswith('_') or not inspect.ismethod(m_obj):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment