Merge pull request #1689 from mpuels/patch-3

doc: Replace 'is not' with '!=' in code example
This commit is contained in:
Ines Montani 2017-12-07 06:10:28 +00:00 committed by GitHub
commit 2ae4755def
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ p
def dependency_labels_to_root(token):
"""Walk up the syntactic tree, collecting the arc labels."""
dep_labels = []
while token.head is not token:
while token.head != token:
dep_labels.append(token.dep)
token = token.head
return dep_labels