Skip to content

Commit 9d06196

Browse files
committed
Add collections.UserString
1 parent 40b2007 commit 9d06196

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

docs/quickstart.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ be accessed under their Python 3 names and locations in Python 2::
9999
import socketserver
100100
import queue
101101
import configparser
102-
from collections import UserList
102+
from collections import UserDict, UserList, UserString
103103
from collections import Counter, OrderedDict # even on Py2.6
104104
from itertools import filterfalse, zip_longest
105105

@@ -122,6 +122,7 @@ be accessed under their Python 3 names and locations in Python 2::
122122
import xmlrpc.client
123123
import xmlrpc.server
124124

125+
and others. For a complete list, see :ref:`list-standard-library-moves`.
125126

126127
.. _py2-dependencies:
127128

docs/standard_library_imports.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ List of moved standard library modules
1616
The complete list of modules available via one of the interfaces below is::
1717

1818
from collections import Counter, OrderedDict # backported to Py2.6
19-
from collections import UserList, UserDict
19+
from collections import UserDict, UserList, UserString
2020

2121
import configparser
2222
import copyreg

future/moves/collections.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
from future.utils import PY2, PY26
66

77
if PY2:
8-
from UserList import UserList
98
from UserDict import UserDict
9+
from UserList import UserList
10+
from UserString import UserString
1011

1112
if PY26:
1213
from future.backports.misc import OrderedDict, Counter

future/standard_library/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
3131
from itertools import filterfalse, zip_longest
3232
from sys import intern
33-
from collections import UserList, UserDict
33+
from collections import UserDict, UserList, UserString
3434
from collections import OrderedDict, Counter # even on Py2.6
3535
from subprocess import getoutput, getstatusoutput
3636
from subprocess import check_output # even on Py2.6

future/tests/test_standard_library.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,7 @@ def test_reload(self):
406406
imp.reload(imp)
407407
self.assertTrue(True)
408408

409+
409410
class TestFutureMoves(CodeHandler):
410411
def test_future_moves_urllib_request(self):
411412
from future.moves.urllib import request as urllib_request
@@ -444,7 +445,7 @@ def test_future_moves(self):
444445
claim and expect. (Issue #104).
445446
"""
446447
from future.moves.collections import Counter, OrderedDict # backported to Py2.6
447-
from future.moves.collections import UserDict, UserList
448+
from future.moves.collections import UserDict, UserList, UserString
448449

449450
from future.moves import configparser
450451
from future.moves import copyreg

0 commit comments

Comments
 (0)