summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2009-10-23 19:13:16 +0200
committerGuillaume Seguin <guillaume@segu.in>2009-10-23 19:13:16 +0200
commitf5a06ee1a3a901495173518629a2b9010b58dae3 (patch)
treea2be5c9b7b7d5a18643ac9555b4d65ff8a69b80d
parent90e39cfaffc510fefdfdf264534c84f8e0483c75 (diff)
downloadumlpy-f5a06ee1a3a901495173518629a2b9010b58dae3.tar.gz
umlpy-f5a06ee1a3a901495173518629a2b9010b58dae3.tar.bz2
Add @nodoc support for properties
-rw-r--r--umlpy.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/umlpy.py b/umlpy.py
index ad4f017..98923e9 100644
--- a/umlpy.py
+++ b/umlpy.py
@@ -180,7 +180,8 @@ for doc in docs:
if options.debug:
print var_name, var_var.name, get_var_type (var_var)
var_type = get_var_type (var_var)
- if all_properties or "@doc" in str (var_var.docstring) or var_type:
+ if (all_properties and not "@nodoc" in str (var_var.docstring)) \
+ or "@doc" in str (var_var.docstring) or var_type:
var_var_name = str (var_var.name.replace (prefix, ""))
vars_dict[var_name].append ((var_var_name, get_var_type (var_var)))
elif type (var_var.value) in (epydoc.apidoc.RoutineDoc,