diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2019-08-18 18:45:16 +0200 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2019-08-24 15:13:09 +0200 |
commit | ea98f9fb7c76264df5e600ed597b79713e6cb2ce (patch) | |
tree | 22f774aa4b31d97554d550b4ac40dd7c4b7b12f8 /semantic_version/compat.py | |
parent | 65d76a46cb1898d9a0dc5c20baf9e014fe974fd8 (diff) | |
download | semantic-version-ea98f9fb7c76264df5e600ed597b79713e6cb2ce.tar.gz |
Drop support for Python<3.4.
Diffstat (limited to 'semantic_version/compat.py')
-rw-r--r-- | semantic_version/compat.py | 15 |
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 |