move common/ into wechat/
This commit is contained in:
+1
-1
@@ -5,9 +5,9 @@ import sys
|
||||
import argparse
|
||||
import logging
|
||||
|
||||
from common.textutil import ensure_unicode
|
||||
from wechat.parser import WeChatDBParser
|
||||
from wechat.res import Resource
|
||||
from wechat.common.textutil import ensure_unicode
|
||||
from wechat.render import HTMLRender
|
||||
|
||||
logger = logging.getLogger("wechat")
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
|
||||
import logging
|
||||
from wechat.parser import WeChatDBParser
|
||||
from common.textutil import safe_filename
|
||||
from wechat.common.textutil import safe_filename
|
||||
import sys, os
|
||||
|
||||
logger = logging.getLogger("wechat")
|
||||
|
||||
@@ -8,8 +8,8 @@ logger = logging.getLogger(__name__)
|
||||
|
||||
from libchat.libchat import SqliteLibChat, ChatMsg
|
||||
from .msg import *
|
||||
from common.timer import timing
|
||||
from common.progress import ProgressReporter
|
||||
from .common.timer import timing
|
||||
from .common.progress import ProgressReporter
|
||||
|
||||
class LibChatHelper(object):
|
||||
""" Build LibChat messages from WeChat Msg"""
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
# Author: Yuxin Wu
|
||||
|
||||
from wechat.parser import WeChatDBParser
|
||||
from common.textutil import ensure_unicode
|
||||
from wechat.common.textutil import ensure_unicode
|
||||
|
||||
from datetime import timedelta, datetime
|
||||
import numpy as np
|
||||
|
||||
+2
-2
@@ -5,8 +5,8 @@ import os
|
||||
import logging
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
from common.textutil import get_file_b64
|
||||
from common.procutil import subproc_succ
|
||||
from .common.textutil import get_file_b64
|
||||
from .common.procutil import subproc_succ
|
||||
|
||||
SILK_DECODER = os.path.join(os.path.dirname(__file__),
|
||||
'../third-party/silk/decoder')
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ import logging
|
||||
import sqlite3
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
from common.textutil import ensure_unicode, md5
|
||||
from .common.textutil import ensure_unicode, md5
|
||||
|
||||
|
||||
class AvatarReader(object):
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ import xml.etree.ElementTree as ET
|
||||
import logging
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
from common.textutil import ensure_unicode
|
||||
from .common.textutil import ensure_unicode
|
||||
|
||||
|
||||
class WeChatMsg(object):
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ import logging
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
from .msg import WeChatMsg, TYPE_SYSTEM
|
||||
from common.textutil import ensure_unicode
|
||||
from .common.textutil import ensure_unicode
|
||||
|
||||
""" tables in concern:
|
||||
emojiinfo
|
||||
|
||||
+3
-3
@@ -20,9 +20,9 @@ except ImportError:
|
||||
css_compress = lambda x: x
|
||||
|
||||
from .msg import *
|
||||
from common.textutil import ensure_unicode, get_file_b64
|
||||
from common.progress import ProgressReporter
|
||||
from common.timer import timing
|
||||
from .common.textutil import ensure_unicode, get_file_b64
|
||||
from .common.progress import ProgressReporter
|
||||
from .common.timer import timing
|
||||
from .smiley import SmileyProvider
|
||||
from .msgslice import MessageSlicerByTime, MessageSlicerBySize
|
||||
|
||||
|
||||
+2
-2
@@ -15,8 +15,8 @@ import pickle
|
||||
import requests
|
||||
|
||||
from .avatar import AvatarReader
|
||||
from common.textutil import md5, get_file_b64
|
||||
from common.timer import timing
|
||||
from .common.textutil import md5, get_file_b64
|
||||
from .common.timer import timing
|
||||
from .msg import TYPE_SPEAK
|
||||
from .audio import parse_wechat_audio_file
|
||||
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ import re
|
||||
import json
|
||||
import struct
|
||||
|
||||
from common.textutil import get_file_b64
|
||||
from .common.textutil import get_file_b64
|
||||
|
||||
STATIC_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'static')
|
||||
TENCENT_SMILEY_FILE = os.path.join(STATIC_PATH, 'tencent-smiley.json')
|
||||
|
||||
Reference in New Issue
Block a user