[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>
changeset7ce5f346ca07
branchdefault
phasedraft
hiddenyes
parent revision#a320b7daf647 [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 7ce5f346ca073396aad4be4bb529116fbcad6dbf
# Parent a320b7daf647906e1713bce156070203ceaf9d88
[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