From 0e3e5df437ce68081d1538ce8b14c57817cd5772 Mon Sep 17 00:00:00 2001 From: Eric Holscher Date: Thu, 29 Jun 2017 10:57:38 -0700 Subject: [PATCH] Fix linting --- .travis.yml | 1 - autoapi/mappers/dotnet.py | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 660e047..2d6fae6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ language: python python: - 2.7 - - 3.4 - 3.5 - 3.6 sudo: false diff --git a/autoapi/mappers/dotnet.py b/autoapi/mappers/dotnet.py index 6fbb2a9..bf43f99 100644 --- a/autoapi/mappers/dotnet.py +++ b/autoapi/mappers/dotnet.py @@ -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():