summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2012-06-22 08:30:13 +0200
committerFlorian Bruhin <me@the-compiler.org>2012-06-22 08:30:13 +0200
commit1946197fb0abb9334733f2e27a57cc4abcd14d8c (patch)
treeeea5df07ca84b8e93fbebc412268e6efa7b19e23
parent1c870f3f6ed0905193e398c01c54c0de06aa2ab1 (diff)
downloadxdd2esi-1946197fb0abb9334733f2e27a57cc4abcd14d8c.tar.gz
xdd2esi-1946197fb0abb9334733f2e27a57cc4abcd14d8c.zip
Rewrapping
-rw-r--r--esilib.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/esilib.py b/esilib.py
index ff10f9f..51f103d 100644
--- a/esilib.py
+++ b/esilib.py
@@ -432,11 +432,11 @@ def _esitype_oct(datatype):
esilength = datatype.length
esisize = datatype.size
if datatype.type_ == 'octet':
- pybasetype = canlib.Datatype(False, 'integer', 8,
- "OCTET({})".format( esilength), esilength)
+ pybasetype = canlib.Datatype(False, 'integer', 8, "OCTET({})".format(
+ esilength), esilength)
elif datatype.type_ == 'unicode':
- pybasetype = canlib.Datatype(False, 'integer', 16,
- "UNICODE({})".format( esilength), esilength)
+ pybasetype = canlib.Datatype(False, 'integer', 16,"UNICODE({})".
+ format(esilength), esilength)
esibasetype = type_to_esitype(pybasetype)[0]
esitype = "ARRAY [0..{}] OF {}".format(esilength - 1, esibasetype)
return (esitype, esisize)