We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0554a8d commit cce6a66Copy full SHA for cce6a66
bin/lesson_check.py
@@ -392,14 +392,11 @@ def check_codeblock_classes(self):
392
393
for node in self.find_all(self.doc, {'type': 'codeblock'}):
394
cls = self.get_val(node, 'attr', 'class')
395
- self.reporter.check(cls is not none and (cls in KNOWN_CODEBLOCKS or
+ self.reporter.check(cls is not None and (cls in KNOWN_CODEBLOCKS or
396
cls.startswith('language-')),
397
(self.filename, self.get_loc(node)),
398
'Unknown or missing code block type {0}',
399
cls)
400
- if not cls is None:
401
- print("NOTE: The AST was malformed and needs to be investigated")
402
- print(self.filename, self.get_loc(node))
403
404
def check_defined_link_references(self):
405
"""Check that defined links resolve in the file.
0 commit comments