1
0
Fork 0
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:
Kip Yin 2019-02-04 17:29:40 +08:00 committed by GitHub
parent feb6788b9f
commit 0b7dfb3b59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,6 @@ import csv
import io
import os
import re
import sys
from collections import defaultdict
import six
@ -381,10 +380,7 @@ def group_by_object(stream):
try:
current = next(stream)
except StopIteration:
if sys.version_info >= (3, 7):
return
else:
raise StopIteration
return
current_key = current.cls, current.id
group = [current]
for message in stream: