1
0
Fork 0
forked from github/pelican

remove unittest2 and fix various warnings in py3

This commit is contained in:
Deniz Turgut 2013-04-13 16:36:05 -04:00
commit bc4bd773a0
10 changed files with 76 additions and 61 deletions

View file

@ -9,6 +9,7 @@ import sys
from six import StringIO
import logging
from logging.handlers import BufferingHandler
import unittest
from functools import wraps
from contextlib import contextmanager
@ -18,11 +19,6 @@ from shutil import rmtree
from pelican.contents import Article
from pelican.settings import _DEFAULT_CONFIG
try:
import unittest2 as unittest
except ImportError:
import unittest
@contextmanager
def temporary_folder():