summaryrefslogtreecommitdiff
path: root/semantic_version/compat.py
diff options
context:
space:
mode:
Diffstat (limited to 'semantic_version/compat.py')
-rw-r--r--semantic_version/compat.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/semantic_version/compat.py b/semantic_version/compat.py
deleted file mode 100644
index b17468f..0000000
--- a/semantic_version/compat.py
+++ /dev/null
@@ -1,15 +0,0 @@
-# -*- coding: utf-8 -*-
-# Copyright (c) The python-semanticversion project
-# This code is distributed under the two-clause BSD License.
-
-
-def base_cmp(x, y):
- if x == y:
- return 0
- elif x > y:
- return 1
- elif x < y:
- return -1
- else:
- # Fix Py2's behavior: cmp(x, y) returns -1 for unorderable types
- return NotImplemented