_compat.py 585 B

123456789101112131415161718192021
  1. # -*- coding: utf-8 -*-
  2. """
  3. wechatpy._compat
  4. ~~~~~~~~~~~~~~~~~
  5. This module makes it easy for wechatpy to run on both Python 2 and 3.
  6. :copyright: (c) 2014 by messense.
  7. :license: MIT, see LICENSE for more details.
  8. """
  9. from __future__ import absolute_import, unicode_literals
  10. import sys
  11. import six
  12. import warnings
  13. warnings.warn("Module `wechatpy._compat` is deprecated, will be removed in 2.0"
  14. "use `wechatpy.utils` instead",
  15. DeprecationWarning, stacklevel=2)
  16. from library import get_querystring
  17. from library.wechatpy.utils import json