[constraints] use io.StringIO (wip)

Related to #267910.

XXX this is an API break, previously we'd accept StringIO.StringIO as a password value. And in any case we might want to use BytesIO here? Not sure...

authorJulien Cristau <julien.cristau@logilab.fr>
changeset6f52973add43
branchdefault
phasedraft
hiddenyes
parent revision#8091838787e8 [test] don't rely on a particular ordering for unsorted lists
child revision<not specified>
files modified by this revision
constraints.py
# HG changeset patch
# User Julien Cristau <julien.cristau@logilab.fr>
# Date 1413451890 -7200
# Thu Oct 16 11:31:30 2014 +0200
# Node ID 6f52973add431f6f0fe7031742d611c823621dab
# Parent 8091838787e802ab9d07e7188b80cf303cc1f027
[constraints] use io.StringIO (wip)

Related to #267910.

XXX this is an API break, previously we'd accept StringIO.StringIO as a
password value. And in any case we might want to use BytesIO here? Not
sure...

diff --git a/constraints.py b/constraints.py
@@ -20,11 +20,11 @@
1  __docformat__ = "restructuredtext en"
2 
3  import re
4  import decimal
5  import operator
6 -from StringIO import StringIO
7 +from io import StringIO
8 
9  from six import string_types, text_type, binary_type
10 
11  from logilab.common.deprecation import class_renamed
12