mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
- move the try/except dance in support.py
- use relative . imports in test files - remove the "future with import", since python < 2.6 is not supported
This commit is contained in:
parent
7fcfea647f
commit
ff5921a469
7 changed files with 24 additions and 31 deletions
|
|
@ -1,13 +1,10 @@
|
|||
# coding: utf-8
|
||||
try:
|
||||
import unittest2 as unittest
|
||||
except ImportError, e:
|
||||
import unittest
|
||||
|
||||
import datetime
|
||||
import os
|
||||
|
||||
from pelican import readers
|
||||
from .support import unittest
|
||||
|
||||
CUR_DIR = os.path.dirname(__file__)
|
||||
CONTENT_PATH = os.path.join(CUR_DIR, 'content')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue