wechatpy._compat   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 22
rs 10
c 0
b 0
f 0
ccs 0
cts 8
cp 0
wmc 0
1
# -*- coding: utf-8 -*-
2
"""
3
    wechatpy._compat
4
    ~~~~~~~~~~~~~~~~~
5
6
    This module makes it easy for wechatpy to run on both Python 2 and 3.
7
8
    :copyright: (c) 2014 by messense.
9
    :license: MIT, see LICENSE for more details.
10
"""
11
from __future__ import absolute_import, unicode_literals
12
import sys  # NOQA
13
import six  # NOQA
14
import warnings
15
16
warnings.warn("Module `wechatpy._compat` is deprecated, will be removed in 2.0"
17
              "use `wechatpy.utils` instead",
18
              DeprecationWarning, stacklevel=2)
19
20
from wechatpy.utils import get_querystring  # NOQA
21
from wechatpy.utils import json  # NOQA
22