mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Remove the check on versions
This commit is contained in:
parent
feb6788b9f
commit
0b7dfb3b59
1 changed files with 1 additions and 5 deletions
|
@ -28,7 +28,6 @@ import csv
|
||||||
import io
|
import io
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import sys
|
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
||||||
import six
|
import six
|
||||||
|
@ -381,10 +380,7 @@ def group_by_object(stream):
|
||||||
try:
|
try:
|
||||||
current = next(stream)
|
current = next(stream)
|
||||||
except StopIteration:
|
except StopIteration:
|
||||||
if sys.version_info >= (3, 7):
|
return
|
||||||
return
|
|
||||||
else:
|
|
||||||
raise StopIteration
|
|
||||||
current_key = current.cls, current.id
|
current_key = current.cls, current.id
|
||||||
group = [current]
|
group = [current]
|
||||||
for message in stream:
|
for message in stream:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue