Skip to content

Fix unresolved name: insert_tail() - #243

Merged
harshildarji merged 2 commits into
TheAlgorithms:masterfrom
cclauss:patch-1
Jan 22, 2018
Merged

harshildarji merged 2 commits into
TheAlgorithms:masterfrom
cclauss:patch-1

Conversation

@cclauss

@cclauss cclauss commented Jan 21, 2018 •

Copy link
Copy Markdown
Member

Line 15: insert_tail(Head.next, data) --> Head.next.insert_tail(data)

Fixes: $ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./data_structures/LinkedList/singly_LinkedList.py:14:13: F821 undefined name 'insert_tail'
            insert_tail(Head.next, data)
            ^
1     F821 undefined name 'insert_tail'

Also formats the code to be compliant with PEP8.

cclauss added 2 commits January 21, 2018 08:56
insert_tail(Head.next, data) --> Head.next.insert_tail(data)

Fixes: $ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./data_structures/LinkedList/singly_LinkedList.py:14:13: F821 undefined name 'insert_tail'
            insert_tail(Head.next, data)
            ^
1     F821 undefined name 'insert_tail'
```

Also formats the code to be compliant with [PEP8](http://pep8.org).
@harshildarji
harshildarji merged commit 00c13c2 into TheAlgorithms:master Jan 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants