mirror of
https://github.com/kennethreitz-archive/python-compat.git
synced 2026-06-05 23:40:17 +00:00
stuffs
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
compat.funcs
|
||||
~~~~~~~~~~~~
|
||||
|
||||
This module contains helper functions.
|
||||
"""
|
||||
|
||||
|
||||
from .flags import is_py2, is_py3
|
||||
|
||||
|
||||
|
||||
if is_py3:
|
||||
from io import BytesIO
|
||||
unicode = str
|
||||
bytes = bytes
|
||||
basestring = str
|
||||
|
||||
else:
|
||||
from cStringIO import StringIO as BytesIO
|
||||
Reference in New Issue
Block a user