Skip to content

Commit

Permalink
py3: Import StringIO from io
Browse files Browse the repository at this point in the history
This was backported to Python 2.7. It uses the C-optimized version,
so cStringIO is not needed either.
  • Loading branch information
pyldap contributors authored and Petr Viktorin committed Nov 24, 2017
1 parent b62c589 commit 8a54ae3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Lib/ldif.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8a54ae3

Please sign in to comment.