This breaks a dependency cycle (as utils.py imports dbconn.py again) and allows
the tests to pass again.
from config import Config
from textutils import fix_maintainer
from dak_exceptions import DBUpdateError, NoSourceFieldError, FileExistsError
from config import Config
from textutils import fix_maintainer
from dak_exceptions import DBUpdateError, NoSourceFieldError, FileExistsError
# suppress some deprecation warnings in squeeze related to sqlalchemy
import warnings
# suppress some deprecation warnings in squeeze related to sqlalchemy
import warnings
@rtype: text
@return: stanza text of the control section.
'''
@rtype: text
@return: stanza text of the control section.
'''
fullpath = self.poolfile.fullpath
deb_file = open(fullpath, 'r')
stanza = utils.deb_extract_control(deb_file)
fullpath = self.poolfile.fullpath
deb_file = open(fullpath, 'r')
stanza = utils.deb_extract_control(deb_file)