Fixes black failures from Previous PR (#1751)

* Fixes black failures from Previous PR

* Fixes equality testing alert

* Fixes call to main() alert

* Fixes unused import
This commit is contained in:
onlinejudge95
2020-02-13 02:19:41 +05:30
committed by GitHub
parent f0dfc4f46d
commit 4866b1330b
6 changed files with 9 additions and 7 deletions

View File

@ -47,7 +47,7 @@ class Automaton:
q.append(child)
state = self.adlist[r]["fail_state"]
while (
self.find_next_state(state, self.adlist[child]["value"]) == None
self.find_next_state(state, self.adlist[child]["value"]) is None
and state != 0
):
state = self.adlist[state]["fail_state"]