|
@@ -53,9 +53,13 @@ import six
|
|
|
import sys
|
|
|
|
|
|
try:
|
|
|
- import unittest2 as unittest #PY26
|
|
|
+ import unittest2 as unittest # PY26
|
|
|
except ImportError:
|
|
|
import unittest
|
|
|
+try:
|
|
|
+ cmp # Python 2
|
|
|
+except NameError:
|
|
|
+ cmp = lambda(x, y): (x > y) - (x < y) # Python 3
|
|
|
|
|
|
from google.protobuf import map_unittest_pb2
|
|
|
from google.protobuf import unittest_pb2
|