mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Another Python 3 fix.
This commit is contained in:
parent
fd53e0c527
commit
0da8d1fe4c
@ -3,7 +3,12 @@ Copied from http://code.activestate.com/recipes/576611-counter-class/
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from heapq import nlargest
|
from heapq import nlargest
|
||||||
from itertools import repeat, ifilter
|
from itertools import repeat
|
||||||
|
try:
|
||||||
|
from itertools import ifilter
|
||||||
|
except ImportError:
|
||||||
|
# ifilter is in-built function in Python3 as filter
|
||||||
|
ifilter = filter
|
||||||
from operator import itemgetter
|
from operator import itemgetter
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user