Pep8 fixes.

This commit is contained in:
Karen Bradshaw 2015-11-30 14:03:19 -05:00
parent 7312405937
commit 73cf925b3b
3 changed files with 6 additions and 5 deletions

View File

@ -549,7 +549,7 @@ class APIChapterContentHandler(xml.sax.ContentHandler, TableMixin):
content = ' ``'
if self.content:
if self.content[-1].endswith('(') or \
self.content[-1].endswith(' '):
self.content[-1].endswith(' '):
content = '``'
content += ' '.join(self.inline_markup_stack[0:None])
content += '``'
@ -567,7 +567,7 @@ class APIChapterContentHandler(xml.sax.ContentHandler, TableMixin):
content = ' ' + self.EMPHASIS[self.current_emphasis]
if self.content:
if self.content[-1].endswith('(') or \
self.content[-1].endswith(' '):
self.content[-1].endswith(' '):
content = '' + self.EMPHASIS[self.current_emphasis]
content += ' '.join(self.inline_markup_stack[0:None])
content += self.EMPHASIS[self.current_emphasis]

View File

@ -448,7 +448,7 @@ class ParaParser(SubParser, TableMixin):
content = ' ' + self.EMPHASIS[self.current_emphasis]
if self.content:
if self.content[-1].endswith('(') or \
self.content[-1].endswith(' '):
self.content[-1].endswith(' '):
content = '' + self.EMPHASIS[self.current_emphasis]
content += ' '.join(self.inline_markup_stack[0:None])
content += self.EMPHASIS[self.current_emphasis]

View File

@ -562,7 +562,8 @@ class TestWADLHandler(unittest.TestCase):
'responses': {'202': {'examples': {},
'headers': {},
'schema': {
'$ref': '#/definitions/createThing_202'},
'$ref':
'#/definitions/createThing_202'},
'description': ''}},
'summary': 'Creates and uses a port interface '
'to attach the port to a server instance.',
@ -581,7 +582,7 @@ class TestWADLHandler(unittest.TestCase):
'required': True,
'type': 'string'}},
'type': 'object'},
'createThing_202':
'createThing_202':
{'properties':
{'thing-a-imagig-response':
{'description':