Further remove python2-isms

This commit is contained in:
Deniz Turgut 2019-11-17 19:19:37 +03:00 committed by Kevin Yap
commit 49bc6ed47f
11 changed files with 35 additions and 91 deletions

View file

@ -2,7 +2,6 @@
import locale
import os
from codecs import open
from shutil import copy, rmtree
from tempfile import mkdtemp

View file

@ -3,7 +3,6 @@
import locale
import os
import re
from codecs import open
from pelican.settings import DEFAULT_CONFIG
from pelican.tests.support import (mute, skipIfNoExecutable, temporary_folder,

View file

@ -1,15 +1,11 @@
# -*- coding: utf-8 -*-
try:
import collections.abc as collections
except ImportError:
import collections
import locale
import logging
import os
import subprocess
import sys
from collections.abc import Sequence
from shutil import rmtree
from tempfile import mkdtemp
@ -94,7 +90,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, Sequence,
"get_generator_classes() must return a Sequence to preserve order")
def test_basic_generation_works(self):