server: izip doesnt exist anymore
This commit is contained in:
parent
07267b9737
commit
31d7fe7d90
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ import hmac
|
||||||
import logging
|
import logging
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from itertools import tee, chain, islice, izip
|
from itertools import tee, chain, islice
|
||||||
from typing import Any, Callable, Dict, List, Optional, Tuple
|
from typing import Any, Callable, Dict, List, Optional, Tuple
|
||||||
|
|
||||||
import sqlalchemy as sa
|
import sqlalchemy as sa
|
||||||
|
@ -102,7 +102,7 @@ def _get_nearby_iter(post_list):
|
||||||
previous_item, current_item, next_item = tee(post_list, 3)
|
previous_item, current_item, next_item = tee(post_list, 3)
|
||||||
previous_item = chain([None], previous_item)
|
previous_item = chain([None], previous_item)
|
||||||
next_item = chain(islice(next_item, 1, None), [None])
|
next_item = chain(islice(next_item, 1, None), [None])
|
||||||
return izip(previous_item, current_item, next_item)
|
return zip(previous_item, current_item, next_item)
|
||||||
|
|
||||||
|
|
||||||
def get_post_security_hash(id: int) -> str:
|
def get_post_security_hash(id: int) -> str:
|
||||||
|
|
Reference in a new issue