summaryrefslogtreecommitdiff
path: root/pyasn1/compat/string.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyasn1/compat/string.py')
-rw-r--r--pyasn1/compat/string.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/pyasn1/compat/string.py b/pyasn1/compat/string.py
deleted file mode 100644
index b9bc8c3..0000000
--- a/pyasn1/compat/string.py
+++ /dev/null
@@ -1,26 +0,0 @@
-#
-# This file is part of pyasn1 software.
-#
-# Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com>
-# License: http://snmplabs.com/pyasn1/license.html
-#
-from sys import version_info
-
-if version_info[:2] <= (2, 5):
-
- def partition(string, sep):
- try:
- a, c = string.split(sep, 1)
-
- except ValueError:
- a, b, c = string, '', ''
-
- else:
- b = sep
-
- return a, b, c
-
-else:
-
- def partition(string, sep):
- return string.partition(sep)