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
This commit is contained in:
parent
92c06635c8
commit
6d1b1425bd
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
|||||||
|
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>
|
2010-01-31 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
|
||||||
|
|
||||||
* plugins/export.c:
|
* plugins/export.c:
|
||||||
|
|||||||
@ -141,14 +141,17 @@ class Parser:
|
|||||||
name = obj.__name__
|
name = obj.__name__
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
name = obj_name
|
name = obj_name
|
||||||
if not name or name.startswith('_'):
|
if not name or not isinstance(name, basestring) or name.startswith('_'):
|
||||||
# skip non-public tags
|
# skip non-public tags
|
||||||
continue;
|
continue;
|
||||||
if inspect.isfunction(obj):
|
if inspect.isfunction(obj):
|
||||||
self._add_tag(obj, TYPE_FUNCTION)
|
self._add_tag(obj, TYPE_FUNCTION)
|
||||||
elif inspect.isclass(obj):
|
elif inspect.isclass(obj):
|
||||||
self._add_tag(obj, TYPE_CLASS, self._get_superclass(obj))
|
self._add_tag(obj, TYPE_CLASS, self._get_superclass(obj))
|
||||||
|
try:
|
||||||
methods = inspect.getmembers(obj, inspect.ismethod)
|
methods = inspect.getmembers(obj, inspect.ismethod)
|
||||||
|
except AttributeError:
|
||||||
|
methods = []
|
||||||
for m_name, m_obj in methods:
|
for m_name, m_obj in methods:
|
||||||
# skip non-public tags
|
# skip non-public tags
|
||||||
if m_name.startswith('_') or not inspect.ismethod(m_obj):
|
if m_name.startswith('_') or not inspect.ismethod(m_obj):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user