Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ford/sourceform.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ def __init__(
self.num_lines = 0
if not isinstance(self, FortranSourceFile):
self.num_lines += 1
if type(self) != FortranSourceFile:
if type(self) is not FortranSourceFile:
FortranBase.__init__(
self, source, first_line, parent, inherited_permission, strings
)
Expand Down Expand Up @@ -888,7 +888,7 @@ def __init__(
if not isinstance(self, FortranType):
self.permission = line_lower
elif line_lower == "sequence":
if type(self) == FortranType:
if type(self) is FortranType:
self.sequence = True
elif self.FORMAT_RE.match(line):
# There's nothing interesting for us in a format statement
Expand Down
4 changes: 2 additions & 2 deletions test/test_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ def test_sub_alias():
def test_sub_alias_escape():
def_alias = {"a": "b"}

result = MetaMarkdown(aliases=def_alias).convert("\|a|")
result = MetaMarkdown(aliases=def_alias).convert(r"\|a|")
assert result == "<p>|a|</p>"

result = MetaMarkdown(aliases=def_alias).convert("*|a|")
assert result == "<p>*b</p>"

result = MetaMarkdown(aliases=def_alias).convert("\|undefined|")
result = MetaMarkdown(aliases=def_alias).convert(r"\|undefined|")
assert result == "<p>|undefined|</p>"


Expand Down