Skip to content

Commit 8a54ae3

Browse files
pyldap contributorsencukou
authored andcommitted
py3: Import StringIO from io
This was backported to Python 2.7. It uses the C-optimized version, so cStringIO is not needed either.
1 parent b62c589 commit 8a54ae3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Lib/ldif.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@
2020

2121
import re
2222
from base64 import b64encode, b64decode
23-
24-
try:
25-
from cStringIO import StringIO
26-
except ImportError:
27-
from StringIO import StringIO
23+
from io import StringIO
2824

2925
from ldap.compat import urlparse, urlopen
3026

0 commit comments

Comments
 (0)