diff options
author | Juan Leni <lenijuan@gmail.com> | 2017-10-10 20:59:17 +0200 |
---|---|---|
committer | Juan Leni <lenijuan@gmail.com> | 2017-10-11 06:46:25 +0200 |
commit | 08334f0908991601152a103cf2934f991bab2efd (patch) | |
tree | baaf65ad25e6f5ded727618ca81b3e92385c51b3 /python/google/protobuf/internal/encoder.py | |
parent | c4083bb3d1231f8a94f2f000434e38528bdff64a (diff) |
Converting to immutable hashable types
Diffstat (limited to 'python/google/protobuf/internal/encoder.py')
-rwxr-xr-x | python/google/protobuf/internal/encoder.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/google/protobuf/internal/encoder.py b/python/google/protobuf/internal/encoder.py index 8c6a1189..40c62d67 100755 --- a/python/google/protobuf/internal/encoder.py +++ b/python/google/protobuf/internal/encoder.py @@ -418,7 +418,7 @@ def _VarintBytes(value): def TagBytes(field_number, wire_type): """Encode the given tag and return the bytes. Only called at startup.""" - return _VarintBytes(wire_format.PackTag(field_number, wire_type)) + return six.binary_type( _VarintBytes(wire_format.PackTag(field_number, wire_type)) ) # -------------------------------------------------------------------- # As with sizers (see above), we have a number of common encoder |