mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #2476 from oulenz/collections
Try importing from collections.abc for compatibility with Python 3.8
This commit is contained in:
commit
24515c2cf0
3 changed files with 13 additions and 3 deletions
|
|
@ -12,7 +12,10 @@ import re
|
|||
import shutil
|
||||
import sys
|
||||
import traceback
|
||||
from collections import Hashable
|
||||
try:
|
||||
from collections.abc import Hashable
|
||||
except ImportError:
|
||||
from collections import Hashable
|
||||
from contextlib import contextmanager
|
||||
from functools import partial
|
||||
from itertools import groupby
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue