Completed
Pull Request — master (#134)
by steven
20:34
created

wechatpy.byte2int()   A

Complexity

Conditions 2

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 2
Metric Value
cc 2
dl 0
loc 11
ccs 4
cts 4
cp 1
crap 2
rs 9.4285
1
# -*- coding: utf-8 -*-
2 10
"""
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 10
from __future__ import absolute_import, unicode_literals
12 10
import sys
13 10
import six
14 10
import warnings
15 10
warnings.warn("Module `wechatpy._compat` is deprecated, will be removed in 2.0"
16
              "use `wechatpy.utils` instead",
17 10
              DeprecationWarning, stacklevel=2)
18 10
from wechatpy.utils import get_querystring
19
from wechatpy.utils import json
20