~rashi007/mailman/docsfix

« back to all changes in this revision

Viewing changes to src/mailman/database/base.py

  • Committer: Barry Warsaw
  • Date: 2015-01-05 01:20:33 UTC
  • mfrom: (7264.4.66 py3)
  • Revision ID: barry@list.org-20150105012033-zdrw9c2odhpf22fz
Merge the Python 3 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
# You should have received a copy of the GNU General Public License along with
16
16
# GNU Mailman.  If not, see <http://www.gnu.org/licenses/>.
17
17
 
18
 
from __future__ import absolute_import, print_function, unicode_literals
 
18
"""Common database support."""
19
19
 
20
 
__metaclass__ = type
21
20
__all__ = [
22
21
    'SABaseDatabase',
23
22
    ]
25
24
 
26
25
import logging
27
26
 
 
27
from mailman.config import config
 
28
from mailman.interfaces.database import IDatabase
 
29
from mailman.utilities.string import expand
28
30
from sqlalchemy import create_engine
29
31
from sqlalchemy.orm import sessionmaker
30
32
from zope.interface import implementer
31
33
 
32
 
from mailman.config import config
33
 
from mailman.interfaces.database import IDatabase
34
 
from mailman.utilities.string import expand
35
 
 
36
34
 
37
35
log = logging.getLogger('mailman.database')
38
 
NL = '\n'
39
36
 
40
37
 
41
38