summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2012-06-22 08:48:26 +0200
committerFlorian Bruhin <me@the-compiler.org>2012-06-22 08:48:26 +0200
commit0ce13f191379acfdc461dd0d696d91c38e77bea9 (patch)
tree7db460bf5a1ab85cbdacd715a579c2ff7ea62e8e
parent74fb85da1f1bf0489ddb453827ab63b8e085706f (diff)
downloadxdd2esi-0ce13f191379acfdc461dd0d696d91c38e77bea9.tar.gz
xdd2esi-0ce13f191379acfdc461dd0d696d91c38e77bea9.zip
Remove self for _set_octet_length
-rw-r--r--xddlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/xddlib.py b/xddlib.py
index 4b3d379..ea7b25c 100644
--- a/xddlib.py
+++ b/xddlib.py
@@ -325,7 +325,7 @@ def _set_string_length(obj):
obj.datatype.length = length
obj.datatype.size = size
-def _set_octet_length(self, obj):
+def _set_octet_length(obj):
""" Sets the correct octet string length """
# This converts a string like 0x0000 to it's size in bytes. (here: 2).
# First we remove 2 from the length (the "0x").