Commit 16c29776 authored by Mark Heppner's avatar Mark Heppner

Simplify Binary type handling

parent f970436e
......@@ -56,15 +56,7 @@ def TimestampFromTicks(ticks):
def Binary(value):
"""Constructs an object capable of holding a binary (long) string value."""
if isinstance(value, _BinaryString):
return value
# TODO base64 encoding doesn't seem necessary with protobufs
#return _BinaryString(base64.b64encode(value))
return _BinaryString(value)
class _BinaryString(str):
return value
def time_from_java_sql_time(n):
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