mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Killed the <> operator. You must now use !=.
Opportunistically also fixed one or two places where '<> None' should be 'is not None' and where 'type(x) <> y' should be 'not isinstance(x, y)'.
This commit is contained in:
parent
01c77c6628
commit
b053cd8f40
36 changed files with 171 additions and 178 deletions
|
@ -51,7 +51,7 @@ def openfile(filename, mode='r'):
|
|||
class TestEmailBase(unittest.TestCase):
|
||||
def ndiffAssertEqual(self, first, second):
|
||||
"""Like failUnlessEqual except use ndiff for readable output."""
|
||||
if first <> second:
|
||||
if first != second:
|
||||
sfirst = str(first)
|
||||
ssecond = str(second)
|
||||
diff = difflib.ndiff(sfirst.splitlines(), ssecond.splitlines())
|
||||
|
@ -2726,7 +2726,7 @@ class TestCharset(unittest.TestCase):
|
|||
# Try a charset with None body encoding
|
||||
c = Charset('us-ascii')
|
||||
eq('hello world', c.body_encode('hello world'))
|
||||
# Try the convert argument, where input codec <> output codec
|
||||
# Try the convert argument, where input codec != output codec
|
||||
c = Charset('euc-jp')
|
||||
# With apologies to Tokio Kikuchi ;)
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue