aboutsummaryrefslogtreecommitdiffhomepage
path: root/python/google/protobuf/internal/decoder.py
diff options
context:
space:
mode:
authorGravatar Juan Leni <lenijuan@gmail.com>2017-10-10 20:59:17 +0200
committerGravatar Juan Leni <lenijuan@gmail.com>2017-10-11 06:46:25 +0200
commit08334f0908991601152a103cf2934f991bab2efd (patch)
treebaaf65ad25e6f5ded727618ca81b3e92385c51b3 /python/google/protobuf/internal/decoder.py
parentc4083bb3d1231f8a94f2f000434e38528bdff64a (diff)
Converting to immutable hashable types
Diffstat (limited to 'python/google/protobuf/internal/decoder.py')
-rwxr-xr-xpython/google/protobuf/internal/decoder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/google/protobuf/internal/decoder.py b/python/google/protobuf/internal/decoder.py
index ff3e6d30..52b64915 100755
--- a/python/google/protobuf/internal/decoder.py
+++ b/python/google/protobuf/internal/decoder.py
@@ -181,7 +181,7 @@ def ReadTag(buffer, pos):
while six.indexbytes(buffer, pos) & 0x80:
pos += 1
pos += 1
- return (buffer[start:pos], pos)
+ return (six.binary_type(buffer[start:pos]), pos)
# --------------------------------------------------------------------