File: compat.py

package info (click to toggle)
python-jsonschema 2.5.1-4~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 800 kB
  • sloc: python: 2,999; makefile: 160; sh: 34
file content (15 lines) | stat: -rw-r--r-- 215 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import sys


if sys.version_info[:2] < (2, 7):  # pragma: no cover
    import unittest2 as unittest
else:
    import unittest

try:
    from unittest import mock
except ImportError:
    import mock


# flake8: noqa