Commit 7e376b24 authored by Jeremy Hylton's avatar Jeremy Hylton

Simplify assertions.

parent b459f7dc
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
############################################################################## ##############################################################################
"""Database connection support """Database connection support
$Id: Connection.py,v 1.137 2004/03/12 06:11:36 jeremy Exp $""" $Id: Connection.py,v 1.138 2004/03/12 06:37:23 jeremy Exp $"""
import logging import logging
import sys import sys
...@@ -125,7 +125,7 @@ class Connection(ExportImport, object): ...@@ -125,7 +125,7 @@ class Connection(ExportImport, object):
their state and register changes. The methods are setstate(), their state and register changes. The methods are setstate(),
register(), setklassstate(). register(), setklassstate().
$Id: Connection.py,v 1.137 2004/03/12 06:11:36 jeremy Exp $ $Id: Connection.py,v 1.138 2004/03/12 06:37:23 jeremy Exp $
""" """
_tmp = None _tmp = None
...@@ -771,9 +771,7 @@ class Connection(ExportImport, object): ...@@ -771,9 +771,7 @@ class Connection(ExportImport, object):
# been modified at txn_time. # been modified at txn_time.
assert start < self._txn_time, (u64(start), u64(self._txn_time)) assert start < self._txn_time, (u64(start), u64(self._txn_time))
assert end is None or self._txn_time <= end, \ assert self._txn_time <= end, (u64(self._txn_time), u64(end))
(u64(self._txn_time), u64(end))
assert end is not None
self._reader.setGhostState(obj, data) self._reader.setGhostState(obj, data)
obj._p_serial = start obj._p_serial = start
return True return True
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment