summaryrefslogtreecommitdiff
path: root/grc/python/extract_docs.py
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2011-05-02 12:35:16 +0100
committerTom Rondeau <trondeau@vt.edu>2011-05-02 12:35:16 +0100
commit207a2ae73bd5d6cab201bb57ed8db64fd54cfd90 (patch)
tree3a828f115fdf011b7f78e45d75c45b7c4912a046 /grc/python/extract_docs.py
parent7a91b8226f71d75b027beb466f965bbba97c07a8 (diff)
parenta92cb89b5529728d9fce781aff85916b3879fbdd (diff)
Merge branch 'mergeme/grc/cross_platform_work'
Diffstat (limited to 'grc/python/extract_docs.py')
-rw-r--r--grc/python/extract_docs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/grc/python/extract_docs.py b/grc/python/extract_docs.py
index f41f415b2c..aa85397f9f 100644
--- a/grc/python/extract_docs.py
+++ b/grc/python/extract_docs.py
@@ -1,5 +1,5 @@
"""
-Copyright 2008, 2009 Free Software Foundation, Inc.
+Copyright 2008-2011 Free Software Foundation, Inc.
This file is part of GNU Radio
GNU Radio Companion is free software; you can redistribute it and/or
@@ -81,8 +81,8 @@ def extract(key):
@param key the block key
@return a string with documentation
"""
- try: assert _docs_cache.has_key(key)
- except: _docs_cache[key] = _extract(key)
+ if not _docs_cache.has_key(key):
+ _docs_cache[key] = _extract(key)
return _docs_cache[key]
if __name__ == '__main__':