From 8a54ae3c3396280fa7a6936f31e8948d95cf8b1c Mon Sep 17 00:00:00 2001 From: pyldap contributors Date: Thu, 23 Nov 2017 22:16:50 +0100 Subject: [PATCH] py3: Import StringIO from io This was backported to Python 2.7. It uses the C-optimized version, so cStringIO is not needed either. --- Lib/ldif.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Lib/ldif.py b/Lib/ldif.py index 7659358..94ffd91 100644 --- a/Lib/ldif.py +++ b/Lib/ldif.py @@ -20,11 +20,7 @@ import re from base64 import b64encode, b64decode - -try: - from cStringIO import StringIO -except ImportError: - from StringIO import StringIO +from io import StringIO from ldap.compat import urlparse, urlopen