mirror of
https://github.com/python/cpython.git
synced 2025-10-08 08:01:55 +00:00
Update the code to better reflect recommended style:
Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
This commit is contained in:
parent
63596aeb33
commit
132dce2246
55 changed files with 520 additions and 519 deletions
|
@ -96,7 +96,7 @@ if crc != 1571220330:
|
|||
s = '{s\005\000\000\000worldi\002\000\000\000s\005\000\000\000helloi\001\000\000\0000'
|
||||
t = binascii.b2a_hex(s)
|
||||
u = binascii.a2b_hex(t)
|
||||
if s <> u:
|
||||
if s != u:
|
||||
print 'binascii hexlification failed'
|
||||
try:
|
||||
binascii.a2b_hex(t[:-1])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue