mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
fix DeprecationWarnning about collections.abc
This commit is contained in:
parent
76eebfe539
commit
6d4fcedacc
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import print_function, unicode_literals
|
||||
|
||||
import collections
|
||||
import collections.abc
|
||||
import locale
|
||||
import logging
|
||||
import os
|
||||
|
|
@ -91,7 +91,7 @@ class TestPelican(LoggedTestCase):
|
|||
generator_classes[-1] is StaticGenerator,
|
||||
"StaticGenerator must be the last generator, but it isn't!")
|
||||
self.assertIsInstance(
|
||||
generator_classes, collections.Sequence,
|
||||
generator_classes, collections.abc.Sequence,
|
||||
"get_generator_classes() must return a Sequence to preserve order")
|
||||
|
||||
def test_basic_generation_works(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue