File: _compat.py

package info (click to toggle)
python-rdflib-jsonld 0.6.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,832 kB
  • sloc: python: 1,800; makefile: 132
file content (6 lines) | stat: -rw-r--r-- 143 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
import sys

IS_PY3 = sys.version_info[0] >= 3

basestring = str if IS_PY3 else basestring  # noqa
unicode = str if IS_PY3 else unicode  # noqa