Skip to content

Commit

Permalink
Prefer "is not" and "not in"
Browse files Browse the repository at this point in the history
  • Loading branch information
ojwb committed Apr 21, 2016
1 parent 99b8e56 commit e4d378c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@
highlight_language = None
for t in languages:
if tags.has(t):
if not highlight_language is None:
if highlight_language is not None:
print "Multiple language tags set (at least %s and %s)" % (highlight_language, t)
sys.exit(1)
highlight_language = t
Expand Down Expand Up @@ -414,7 +414,7 @@ def run(self):
return [nodes.literal(text = 'No version of example %s in language %s - patches welcome!'
% (last_example, highlight_language))]
self.arguments[0] = "/" + filename
if not 'start-after' in self.options and not 'end-before' in self.options:
if 'start-after' not in self.options and 'end-before' not in self.options:
if 'marker' in self.options:
marker = self.options['marker']
del self.options['marker']
Expand Down

0 comments on commit e4d378c

Please sign in to comment.