Commit 994af0c5 authored by Tres Seaver's avatar Tres Seaver

Moar don't use repr(tid) to get a serial.

repr() must return text, and we need bytes.
parent 372c1900
...@@ -310,12 +310,12 @@ def getTID(at, before): ...@@ -310,12 +310,12 @@ def getTID(at, before):
at = toTimeStamp(at) at = toTimeStamp(at)
else: else:
at = TimeStamp(at) at = TimeStamp(at)
before = repr(at.laterThan(at)) before = at.laterThan(at).raw()
elif before is not None: elif before is not None:
if isinstance(before, datetime.datetime): if isinstance(before, datetime.datetime):
before = repr(toTimeStamp(before)) before = toTimeStamp(before).raw()
else: else:
before = repr(TimeStamp(before)) before = TimeStamp(before).raw()
return before return before
......
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