Fix linting

pull/113/head
Eric Holscher 7 years ago
parent 7e7f42367d
commit 0e3e5df437

@ -1,7 +1,6 @@
language: python
python:
- 2.7
- 3.4
- 3.5
- 3.6
sudo: false

@ -211,15 +211,15 @@ class DotNetSphinxMapper(SphinxMapperBase):
# Clean out dead namespaces
for key, ns in self.top_namespaces.copy().items():
if len(ns.children) == 0:
if not ns.children:
del self.top_namespaces[key]
for key, ns in self.namespaces.items():
if len(ns.children) == 0:
if not ns.children:
del self.namespaces[key]
def output_rst(self, root, source_suffix):
if not len(self.objects):
if not self.objects:
raise ExtensionError("No API objects exist. Can't continue")
for id, obj in self.objects.items():

Loading…
Cancel
Save