core (tools): moved common to a separate package, and put data method in a data_format module
This commit is contained in:
parent
d0fb849398
commit
2d1d286be2
1 changed files with 15 additions and 15 deletions
|
|
@ -22,7 +22,7 @@ from sat.core.constants import Const as C
|
|||
from sat.core.log import getLogger
|
||||
log = getLogger(__name__)
|
||||
from sat.core import exceptions
|
||||
from sat.tools import common
|
||||
from sat.tools.common import data_format
|
||||
from twisted.internet import threads
|
||||
from collections import OrderedDict
|
||||
import itertools
|
||||
|
|
@ -159,7 +159,7 @@ class DotclearParser(object):
|
|||
|
||||
def metaFinishedHandler(self):
|
||||
for post_id, tags in self.tags.iteritems():
|
||||
common.iter2dict('tag', tags, self.posts_data[post_id]['blog'])
|
||||
data_format.iter2dict('tag', tags, self.posts_data[post_id]['blog'])
|
||||
del self.tags
|
||||
|
||||
def commentHandler(self, headers, data, index):
|
||||
|
|
|
|||
Loading…
Reference in a new issue