Skip to content

Commit

Permalink
Fix doc strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef-Friedrich committed Jan 28, 2018
1 parent 9ba9016 commit 540f3e8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
4 changes: 0 additions & 4 deletions test/test_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ def setUp(self):
from tmep import doc
self.doc = doc.Doc()

def test_attribute_doc_strings(self):
self.assertTrue(self.doc.doc_strings)
self.assertTrue(isinstance(self.doc.doc_strings, dict))

def test_attribute_functions(self):
self.assertTrue(self.doc.functions)
self.assertTrue(isinstance(self.doc.functions, list))
Expand Down
3 changes: 1 addition & 2 deletions tmep/doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class Doc(object):
def __init__(self):
f = func.Functions()
functions = f.functions()
self.doc_strings = {}
self.synopsises = {}
self.examples = {}
self.descriptions = {}
Expand All @@ -20,7 +19,7 @@ def __init__(self):
self.functions.append(name)
doc = function.__doc__
if doc:
self.doc_strings[name] = self.prepare_docstrings(doc)
doc = self.prepare_docstrings(doc)
self.synopsises[name] = self.extract_value(doc, 'synopsis')
self.examples[name] = self.extract_value(doc, 'example')
self.descriptions[name] = self.extract_value(
Expand Down
2 changes: 1 addition & 1 deletion tmep/func.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def tmpl_title(text):
def tmpl_upper(text):
"""Covert a string to upper case
* synopsis: %upper{text}
* synopsis: ``%upper{text}``
* description: Convert “text” to UPPERCASE.
"""
return text.upper()
Expand Down

0 comments on commit 540f3e8

Please sign in to comment.