diff options
author | Guido van Rossum <guido@python.org> | 2006-08-24 03:53:23 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2006-08-24 03:53:23 (GMT) |
commit | b053cd8f40dd19985b16f50661640dcefb69888f (patch) | |
tree | 88e1c2ce636a6df402a97c51ea9067a46735120a /Lib/bsddb | |
parent | 01c77c66289f8e9c8d15b8da623fae4014ec2edb (diff) | |
download | cpython-b053cd8f40dd19985b16f50661640dcefb69888f.zip cpython-b053cd8f40dd19985b16f50661640dcefb69888f.tar.gz cpython-b053cd8f40dd19985b16f50661640dcefb69888f.tar.bz2 |
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)'.
Diffstat (limited to 'Lib/bsddb')
-rw-r--r-- | Lib/bsddb/dbtables.py | 2 | ||||
-rw-r--r-- | Lib/bsddb/test/test_compat.py | 2 | ||||
-rw-r--r-- | Lib/bsddb/test/test_recno.py | 2 | ||||
-rw-r--r-- | Lib/bsddb/test/test_thread.py | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/Lib/bsddb/dbtables.py b/Lib/bsddb/dbtables.py index 655fb96..7f862d7 100644 --- a/Lib/bsddb/dbtables.py +++ b/Lib/bsddb/dbtables.py @@ -453,7 +453,7 @@ class bsdTableDB : # error dataitem = None dataitem = mappings[column](dataitem) - if dataitem <> None: + if dataitem != None: self.db.put( _data_key(table, column, rowid), dataitem, txn=txn) diff --git a/Lib/bsddb/test/test_compat.py b/Lib/bsddb/test/test_compat.py index 841e01c..af9e128 100644 --- a/Lib/bsddb/test/test_compat.py +++ b/Lib/bsddb/test/test_compat.py @@ -120,7 +120,7 @@ class CompatibilityTestCase(unittest.TestCase): try: rec = f.next() except KeyError: - assert rec == f.last(), 'Error, last <> last!' + assert rec == f.last(), 'Error, last != last!' f.previous() break if verbose: diff --git a/Lib/bsddb/test/test_recno.py b/Lib/bsddb/test/test_recno.py index 170448e..e325aac 100644 --- a/Lib/bsddb/test/test_recno.py +++ b/Lib/bsddb/test/test_recno.py @@ -30,7 +30,7 @@ class SimpleRecnoTestCase(unittest.TestCase): try: os.remove(self.filename) except OSError, e: - if e.errno <> errno.EEXIST: raise + if e.errno != errno.EEXIST: raise def test01_basic(self): d = db.DB() diff --git a/Lib/bsddb/test/test_thread.py b/Lib/bsddb/test/test_thread.py index f187413..6942aa2 100644 --- a/Lib/bsddb/test/test_thread.py +++ b/Lib/bsddb/test/test_thread.py @@ -58,7 +58,7 @@ class BaseThreadedTestCase(unittest.TestCase): try: os.mkdir(homeDir) except OSError, e: - if e.errno <> errno.EEXIST: raise + if e.errno != errno.EEXIST: raise self.env = db.DBEnv() self.setEnvOpts() self.env.open(homeDir, self.envflags | db.DB_CREATE) |