File: compat.py

package info (click to toggle)
python-nose-parameterized 0.3.4-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 104 kB
  • sloc: python: 233; makefile: 18
file content (13 lines) | stat: -rw-r--r-- 276 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
"""
A stripped down version of six.py, containing only the bits we actually need.
Kept minimal so that OS package maintainers don't need to patch out six.py.
"""

import sys

PY3 = sys.version_info[0] == 3

if PY3:
    string_types = str,
else:
    string_types = basestring,