From ad134d32f04b74cc689b40845d4bb130da559599 Mon Sep 17 00:00:00 2001 From: leewz Date: Tue, 30 Oct 2018 21:05:14 -0400 Subject: [PATCH] Fix typo. --- pygob/loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygob/loader.py b/pygob/loader.py index 3bb613e..0404c50 100644 --- a/pygob/loader.py +++ b/pygob/loader.py @@ -92,7 +92,7 @@ def _load(self, buf): # serves as a kind of field delta. go_type = self.types.get(typeid) if go_type is not None and not isinstance(go_type, GoStruct): - assert segment[0] == 0, 'illegal delta for singleton: %s' % buf[0] + assert segment[0] == 0, 'illegal delta for singleton: %s' % segment[0] segment = segment[1:] value, segment = self.decode_value(typeid, segment) assert segment == b'', 'trailing data in segment: %s' % list(segment)