Skip to content
Permalink
Browse files
Replace 'is None' with 'is none' when jinjifying
h/t @felixfontein — via getnikola/plugins#273

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 9, 2018
1 parent 960af8f commit 86e4d61b7c748b4ea59ac8d6e109546872945e83
Showing with 1 addition and 0 deletions.
  1. +1 −0 scripts/jinjify.py
@@ -26,6 +26,7 @@
['sorted(translations)', 'translations|sort'],
['abs(i - current_page)', '(i - current_page)|abs'],
['loop.index', 'loop.index0'],
['is None', 'is none'],

This comment has been minimized.

Copy link
@felixfontein

felixfontein May 9, 2018

Contributor

You should also add ['is not None', 'is not none'].

This comment has been minimized.

Copy link
@Kwpolska

Kwpolska via email May 9, 2018

Author Member
]

dumber_replacements = [

0 comments on commit 86e4d61

Please sign in to comment.