mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Migrate remaining tests from UserDict.UserDict to collections.UserDict.
This commit is contained in:
parent
554c8b856c
commit
f80680d8cd
6 changed files with 14 additions and 14 deletions
|
|
@ -1,11 +1,11 @@
|
|||
import ConfigParser
|
||||
import io
|
||||
import unittest
|
||||
import UserDict
|
||||
import collections
|
||||
|
||||
from test import test_support
|
||||
|
||||
class SortedDict(UserDict.UserDict):
|
||||
class SortedDict(collections.UserDict):
|
||||
def items(self):
|
||||
return sorted(self.data.items())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue