Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added zero list decoder and fixed typo

  • Loading branch information...
commit 26ef6c1deb899234534f6a5256cea38cea43dcec 1 parent ee70116
@rhs authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 codec.py
View
5 codec.py
@@ -467,6 +467,9 @@ def dec_compound(self, format, bytes, constructor=identity):
count -= 1
return constructor(result), bytes
+ def dec_list_list0(self, bytes):
+ return []
+
def dec_list_list8(self, bytes):
return self.dec_compound("!BB", bytes)
@@ -483,7 +486,7 @@ def dec_array(self, format, bytes, constructor=identity):
values.append(self.construct(type, element))
count -= 1
- return Array(encoding.type, values), bytes
+ return Array(type, values), bytes
def dec_array_array8(self, bytes):
return self.dec_array("!BB", bytes)
Please sign in to comment.
Something went wrong with that request. Please try again.