Skip to content
Open
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 pattern/text/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ def anchors(self):

@property
def is_question(self):
return len(self) > 0 and str(self[-1]) == "?"
return len(self) > 0 and str(self.string[-1]) == "?"
@property
def is_exclamation(self):
return len(self) > 0 and str(self[-1]) == "!"
Expand Down Expand Up @@ -1712,4 +1712,4 @@ def outline(column, fill=1, padding=3, align="left"):
del columns[6]
# Create a string with one row (i.e., one token) per line.
return "\n".join(["".join([x[i] for x in columns]) for i in range(len(columns[0]))])