mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
#7092: Silence more py3k warnings. Patch by Florent Xicluna.
This commit is contained in:
parent
17ae2ba78f
commit
dde5b94875
39 changed files with 102 additions and 85 deletions
|
|
@ -307,7 +307,7 @@ class TestBase_Mapping(unittest.TestCase):
|
|||
continue
|
||||
|
||||
unich = unichrs(data[1])
|
||||
if ord(unich) == 0xfffd or urt_wa.has_key(unich):
|
||||
if ord(unich) == 0xfffd or unich in urt_wa:
|
||||
continue
|
||||
urt_wa[unich] = csetch
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue