mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Remove usage of sets module (patch #1500609).
This commit is contained in:
parent
83fa22f564
commit
7b71bf3872
4 changed files with 6 additions and 9 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import unittest
|
||||
from test import test_support
|
||||
|
||||
import string, StringIO, mimetools, sets
|
||||
import string, StringIO, mimetools
|
||||
|
||||
msgtext1 = mimetools.Message(StringIO.StringIO(
|
||||
"""Content-Type: text/plain; charset=iso-8859-1; format=flowed
|
||||
|
|
@ -25,7 +25,7 @@ class MimeToolsTest(unittest.TestCase):
|
|||
self.assertEqual(o.getvalue(), start)
|
||||
|
||||
def test_boundary(self):
|
||||
s = sets.Set([""])
|
||||
s = set([""])
|
||||
for i in xrange(100):
|
||||
nb = mimetools.choose_boundary()
|
||||
self.assert_(nb not in s)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue